コード例 #1
0
        public override void OnRecycle()
        {
            base.OnRecycle();

            delays.Clear();
            PrefabPoolManager.Recycle(ref settings);
        }
コード例 #2
0
        public override void OnRecycle()
        {
            base.OnRecycle();

            PrefabPoolManager.Recycle(source);
            PrefabPoolManager.Recycle(ref settings);
        }
コード例 #3
0
        public override void OnRecycle()
        {
            base.OnRecycle();

            PrefabPoolManager.Recycle(settings);
            TypePoolManager.RecycleElements(dynamicData);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        public void RecycleEntity(EntityBehaviour instance)
        {
            Assert.IsNotNull(instance);

            PrefabPoolManager.Recycle(instance);
        }