예제 #1
0
 public static void StartUp()
 {
     if (sm_GameController == null)
     {
         DontDestroyHandler.CreateComponent <GameController>();
     }
 }
예제 #2
0
        protected override void DoInit()
        {
            rootTransform = DontDestroyHandler.CreateTransform(ROOT_NAME);

            SpawnPool spawnPool = PoolManager.GetInstance().GetSpawnPool(CONTROLLER_SPAWN_NAME, true);

            effectControllerPool                    = spawnPool.CreateGameObjectPool(CONTROLLER_POOL_PATH, GetEffectControllerTemplate(), PoolTemplateType.RuntimeInstance);
            effectControllerPool.IsAutoClean        = false;
            effectControllerPool.PreloadTotalAmount = 20;
            effectControllerPool.PreloadOnceAmount  = 2;
            effectControllerPool.completeCallback   = OnInitComplete;
        }
예제 #3
0
 static void OnStartup()
 {
     sm_Updater = DontDestroyHandler.CreateComponent <UpdateBehaviour>(NAME);
 }
예제 #4
0
 protected override void DoInit()
 {
     m_CachedTransform = DontDestroyHandler.CreateTransform("PoolManager");
     m_CullTimerTask   = TimerManager.GetInstance().AddIntervalTimer(m_CullTimeInterval, OnCullTimerUpdate);
 }