protected override void Awake() { if (Instance != null) { Destroy(this); return; } Instance = this; DontDestroyOnLoad(this); Init(); Log("Awake", "QStockToolbar"); }
protected override void Awake() { if (Instance != null) { Destroy(this); return; } Instance = this; DontDestroyOnLoad(this); GameEvents.onGUIApplicationLauncherReady.Add(AppLauncherReady); GameEvents.onGUIApplicationLauncherDestroyed.Add(AppLauncherDestroyed); GameEvents.onLevelWasLoadedGUIReady.Add(AppLauncherDestroyed); Log("Awake", "QStockToolbar"); }