void EatingShip() { if (_sharkStats == SharkStats.Hungry) { if (EatList.Count != 0) { GameObject tmp = new GameObject(); foreach (GameObject gobj in EatList) { if (_boatMgr.gameObject != null) { tmp = gobj; _boatMgr.BoatDie(gobj.name); } } if (tmp != null) { EatList.Remove(tmp); } } } }