Пример #1
0
 void DestroyStatic()
 {
     StopAllCoroutines();
     instance = null;
     //Destroy(gameObject);
 }
Пример #2
0
 void Awake()
 {
     instance  = this;
     objPrefab = Resources.Load <DMM_PlasmaWall>("Prefabs/Projectiles/PlasmaWall");
     objPool   = new Pool <DMM_PlasmaWall>(8, Factory, DMM_PlasmaWall.Initialize, DMM_PlasmaWall.Dispose, true);
 }