コード例 #1
0
        public void ButtonWatchAd()
        {
            if (Advertisement.IsReady())
            {
                Advertisement.Show();
            }

            PlayersAccount.DepositQuadToSave();
            LevelEvent.RestartGame.Invoke();
            PlayersAccount.Reset();
            _deathPanelFlipper.Deactivate();
        }
コード例 #2
0
ファイル: MarketGui.cs プロジェクト: Exiolite/Abyss
        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();
        }
コード例 #3
0
 protected override void Initialize()
 {
     _deathPanelFlipper = GetComponent <PanelFlipper>();
     LevelEvent.PlayerDeath.AddListener(SetDeathPanelActive);
     _deathPanelFlipper.Deactivate();
 }
コード例 #4
0
 public void ButtonBuyClicked()
 {
     _targetShipYard.OnBuyShip(_target);
     _parentPanel.Deactivate();
 }