void DestroyStatic() { StopAllCoroutines(); instance = null; //Destroy(gameObject); }
void Awake() { instance = this; objPrefab = Resources.Load <DMM_ScramblerMine>("Prefabs/Projectiles/ScramblerMine"); objPool = new Pool <DMM_ScramblerMine>(8, Factory, DMM_ScramblerMine.Initialize, DMM_ScramblerMine.Dispose, true); }