//public bool ShotBullet(Transform transform) //{ // BulletController bullet = inActiveStack.Pop(); // if (bullet != null) // { // bullet.Shot(transform.position, transform.rotation,Vector3.zero); // return true; // } // return false; //} public bool AppearIcon(Vector3 position) { IconUnit icon = inActiveStack.Pop(); if (icon != null) { icon.Appear(position); return(true); } return(false); }
internal void Push(IconUnit icon) { icon.gameObject.SetActive(false); inActiveStack.Push(icon); }