Пример #1
0
        public void NormalPopEffect(IntVector2 ij, int genre)
        {
            //粒子特效
            var ps = PopParticleSysPool.Dequeue().transform;

            ps.ResetTransform(transform);
            ps.transform.localPosition = GameManager.Instance.MyGrid.GetCellPosition(ij);

            ps.GetComponent <ParticleSystem>().Play();
            PopParticleSysPool.Enqueue(ps.gameObject, 5);
        }
Пример #2
0
 void Awake()
 {
     Instance = this;
 }