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)); } }
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)); } }