コード例 #1
0
ファイル: QS_ToolbarStock.cs プロジェクト: tivec/QuickMods
        protected override void Awake()
        {
            if (Instance != null)
            {
                Destroy(this);
                return;
            }
            Instance = this;
            //DontDestroyOnLoad (Instance);

            Init();

            Log("Awake", "QStockToolbar");
        }
コード例 #2
0
ファイル: QS_ToolbarStock.cs プロジェクト: stasikos/QuickMods
 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");
 }