Exemplo n.º 1
0
 // Update is called once per frame
 void LateUpdate()
 {
     if (mActive && !mParticles.IsAlive())
     {
         PoolController.ReleaseAuto(transform);
     }
 }
Exemplo n.º 2
0
        void DoDespawn()
        {
            if (despawnCallback != null)
            {
                despawnCallback(gameObject);
            }

            PoolController.ReleaseAuto(transform);
        }
Exemplo n.º 3
0
 public void Release()
 {
     PoolController.ReleaseAuto(this);
 }