void Awake() { instance = this; objPrefab = Resources.Load <DMM_StunMissile>("Prefabs/Projectiles/StunMissile"); objPool = new Pool <DMM_StunMissile>(8, Factory, DMM_StunMissile.Initialize, DMM_StunMissile.Dispose, true); }
public void ReturnToPool(DMM_StunMissile obj) { obj.transform.parent = transform; objPool.DisablePoolObject(obj); }
public static void Dispose(DMM_StunMissile grenadeObj) { grenadeObj.gameObject.SetActive(false); }
public static void Initialize(DMM_StunMissile grenadeObj) { grenadeObj.gameObject.SetActive(true); }