public static void Recycle(IPoolable inPoolable) { if (inPoolable.IsActiveInPool()) { inPoolable.DeactivateForPool(); } else { throw new System.Exception("tried to recycle an object that was already deactivated"); } }
public static void Recycle(IPoolable inPoolable) { if (inPoolable.IsActiveInPool()) { inPoolable.DeactivateForPool(); } else { throw new System.Exception("tried to recycle an object that was already deactivated"); } }