示例#1
0
        public MoneyVotingState(MoneyVotingInfo info)
        {
            Info          = info;
            CurrentAmount = Info.StartAmount;
            Timer         = new TimerState(info.Duration);
#if DEBUGGER
            Debugger.Default.Display("Skip Voting", Timer.Skip);
#endif
        }
示例#2
0
        public override void StateStarted()
        {
            /*
             *  1. Открываем MoneyVoting и ставим таймер
             */
            _event = new EventInfo("Last chance", "Let's gather money to revive the company");
            var votingInfo = new MoneyVotingInfo(Common.BankruptcyGatherTarget - Context.Company.Balance);

            _votingState = new MoneyVotingState(votingInfo);
            UIManager.Instance.ShowMoneyVotingPopup(_event, _votingState);
            SoundManager.Instance.Play(SoundBank.Instance.Bankruptcy);
        }