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); }
void Awake() { Instance = this; }