public void ButtonWatchAd() { if (Advertisement.IsReady()) { Advertisement.Show(); } PlayersAccount.DepositQuadToSave(); LevelEvent.RestartGame.Invoke(); PlayersAccount.Reset(); _deathPanelFlipper.Deactivate(); }
protected override void Initialize() { _marketFlipper = GetComponent <PanelFlipper>(); foreach (var marketShip in LevelManager.DataBase.MarketShips) { var shipRepresentor = Instantiate(_shipRepresentor, _marketContent.transform); shipRepresentor.SetRepresentor(marketShip, _marketFlipper); } GuiEvent.ShowMarket.AddListener(SetPanelActive); _marketFlipper.Deactivate(); }
protected override void Initialize() { _deathPanelFlipper = GetComponent <PanelFlipper>(); LevelEvent.PlayerDeath.AddListener(SetDeathPanelActive); _deathPanelFlipper.Deactivate(); }
public void ButtonBuyClicked() { _targetShipYard.OnBuyShip(_target); _parentPanel.Deactivate(); }