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