public void GiveMission(Mission mission) { if (prevMission) { availibleMissions.Add(prevMission); prevMission = null; } mission.ResetMission(); curMission = mission; availibleMissions.Remove(mission); curMission.InitializeMission(); titleText.text = curMission.missionName; descText.text = curMission.description; rewardText.text = "Reward: $" + curMission.reward; discardButtonObject.SetActive(true); missionWaitObject.SetActive(false); missionDetailsObject.SetActive(true); }