Beispiel #1
0
        public void PlayEffectAtPoint(Vector3 p)
        {
            GameObject g = pool.GetObject();

            p.z = g.transform.position.z;
            g.transform.position = p;
            g.SetActive(true);

            ScheduleOnce.CreateActive(this, 0.5f, () => {
                g.SetActive(false);
                pool.SetObject(g);
            });
        }
 // 子弹爆炸失效
 public void OnBomb(FireBall fire)
 {
     fire.OnDestroy();
     mPool.SetObject(fire);
 }