void Start()
 {
     panelManagerScript.CloseOption(popUp_objectivePrefab);
     //objectiveText = popUp_objectivePrefab.GetComponent<Text>();
     gameManager      = GameObject.Find("GameManager").GetComponent <GameManager>();
     popUpPanelScript = popUp_objectivePrefab.GetComponent <PopUpPanel>();
 }
 public void Button_Ok()
 {
     PopUpPanel.SetActive(false);
 }
 public void PopUp(string errorMessage)
 {
     PopUpPanel.SetActive(true);
     popUpText.text = errorMessage;
 }