Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
        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));
            }
        }