Example #1
0
        protected override void Awake()
        {
            if (Instance != null)
            {
                Destroy(this);
                return;
            }
            Instance = this;
            //DontDestroyOnLoad (Instance);
            Init();

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