Example #1
0
 protected override void Awake()
 {
     if (Instance != null)
     {
         Destroy(this);
         return;
     }
     Instance = this;
     DontDestroyOnLoad(this);
     Init();
     Log("Awake", "QStockToolbar");
 }
Example #2
0
 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");
 }