public void RepeatMission()
 {
     PanelMainMenu.SetActive(true);
     //it is a backend thing. we don't want to repeat the last successfull mission. we want to do the next one
     PanelMainMenu.GetComponent <PanelMainMenu>().StartMission(Mission.MissionType, false);
     gameObject.SetActive(false);
 }
 public void ReturnToMainMenu()
 {
     PanelMainMenu.SetActive(true);
     gameObject.SetActive(false);
 }