// public void NextEnemy(IShip oldShip) // { //// Synchronisator.Instance.UnlockShip(oldShip.shipNumber); // if (shipControllers.Contains(oldShip)) // { // shipControllers.Remove(oldShip); // } // IShip newShip = CreateAI(1, shipsVariation.GetRandomShip(), shipsVariation.GetRandomColor(Synchronisator.Instance.shipColor1)); // newShip.StartGame(); // shipControllers.Add(newShip); // } void RemoveShip(IShip ship) { if (shipControllers.Contains(ship)) { shipControllers.Remove(ship); Destroy(ship.GetShipController().gameObject); } }