public override void OnRecycle() { base.OnRecycle(); delays.Clear(); PrefabPoolManager.Recycle(ref settings); }
public override void OnRecycle() { base.OnRecycle(); PrefabPoolManager.Recycle(source); PrefabPoolManager.Recycle(ref settings); }
public override void OnRecycle() { base.OnRecycle(); PrefabPoolManager.Recycle(settings); TypePoolManager.RecycleElements(dynamicData); }
public void RecycleEffect <T>(T instance) where T : ParticleEffect { Assert.IsNotNull(instance); if (instance.IsPlaying) { instance.Stop(); } ParticleEffect prefab; if (activeEffectToPrefab.TryGetValue(instance, out prefab)) { var activeEffects = prefabToActiveEffects[prefab]; activeEffects.Remove(instance); } PrefabPoolManager.Recycle(instance); }
public void RecycleEntity(EntityBehaviour instance) { Assert.IsNotNull(instance); PrefabPoolManager.Recycle(instance); }