예제 #1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(this);
         return;
     }
     _miniBattteryPooler         = CreatePool <MiniBattery>(batteryPool);
     levelManager.OnLevelChange += (settings) => DeactivatePools();
     InitializeBulletPools();
 }