private void addShipToFleet(GameObject s) { _playerHangar.AddShipToFleet(s); addShipToFleetButton.SetActive(false); if (_playerHangar.GetFleet().Count == 3) { battleButton.SetActive(true); } else { battleButton.SetActive(false); } removeShipFromFleetButton.SetActive(true); removeShipFromFleetButton.GetComponent <Button>().onClick.AddListener(delegate() { removeShipFromFleet(s.gameObject); }); PersistantDataManager.Instance.SetPlayerHangar(_playerHangar); }