private IEnumerator WaitUntilTimeUp() { yield return _timerDelay; PoolBoss.Despawn(_trans); }
/// <summary> /// Call this method to despawn a prefab using Pool Boss. /// </summary> /// <param name="transToDespawn">Transform to despawn</param> public static void Despawn(this Transform transToDespawn) { PoolBoss.Despawn(transToDespawn); }