remove GameObjectInstance and _thisInstance

This commit is contained in:
Mister_Nebula 2021-06-19 11:12:38 +01:00
parent 9b197e1ea1
commit 2fe6810afc

View File

@ -67,17 +67,13 @@ namespace QSB
public static bool IsServer => QNetworkServer.active;
public static bool IsInMultiplayer => QNetworkManager.singleton.isNetworkActive;
public static string QSBVersion => Helper.Manifest.Version;
public static GameObject GameObjectInstance => _thisInstance.gameObject;
private static QSBCore _thisInstance;
private const float _debugLineSpacing = 11f;
public void Awake()
{
Application.runInBackground = true;
_thisInstance = this;
var instance = TextTranslation.Get().GetValue<TextTranslation.TranslationTable>("m_table");
instance.theUITable[(int)UITextType.PleaseUseController] =
"<color=orange>Quantum Space Buddies</color> is best experienced with friends...";