void AssignNewMission() { Mission newMission = GenerateMission(); player.ReceiveMission(newMission); ActivateMission(newMission); NewMissionAssigned.Invoke(newMission); string message = "New mission assigned! Destination: " + newMission.destination.name; message += "\nTime limit: " + newMission.baseTimeLimit + " seconds."; Debug.Log(message); }
void AssignFirstMission() { Mission firstMission = GenerateMission(); // Make sure that first mission isn't to Earth, since you start there if (firstMission.destination.name == "Earth") { firstMission.destination = gameController.planets[0]; } player.ReceiveMission(firstMission); ActivateMission(firstMission); NewMissionAssigned.Invoke(firstMission); string message = "First mission assigned! Destination: " + firstMission.destination.name; message += "\nTime limit: " + firstMission.baseTimeLimit + " seconds."; Debug.Log(message); }