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

            PoolController.ReleaseAuto(transform);
        }
 public void Release()
 {
     PoolController.ReleaseAuto(this);
 }