void DestroyStatic() { StopAllCoroutines(); instance = null; //Destroy(gameObject); }
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); }