コード例 #1
0
ファイル: CommandCenterWindow.cs プロジェクト: SoapMc/Miner
        public void CancelMission(MissionButton button, Mission mission)
        {
            Mission cancelledMission = _playerActiveMissions.Find(x => x == mission);

            if (cancelledMission != null)
            {
                _cancelMission.Raise(new CancelMissionEA(cancelledMission));
                button.UpdateStyle(GetStyleForMission(mission));
            }
        }
コード例 #2
0
ファイル: CommandCenterWindow.cs プロジェクト: SoapMc/Miner
        public void AcceptMission(MissionButton button, Mission mission)
        {
            Mission acceptedMission = _availableMissions.Find(x => x == mission);

            if (acceptedMission != null)
            {
                _acceptMission.Raise(new AcceptMissionEA(acceptedMission));
                button.UpdateStyle(GetStyleForMission(mission));
            }
        }