public void GameOver_prop() { BackGroundPic.SetActive(true); JoyStickPanel_Left.SetActive(false); DragButton.SetActive(false); GameOver_Menu.SetActive(true); Destroy(Main_Camera.GetComponent <CameraFollow>()); }
void Start() { //Mission_id = ES2.Load<int>(Application.persistentDataPath+"/LvInfo.kanb?tag=Mission_id"); Mission_id = PlayerPrefs.GetInt("Mission_id"); StartCoroutine("MissionShow"); JoyStickPanel_Left.SetActive(false); DragButton.SetActive(false); GameOver_Menu.SetActive(false); }
public void GameOver() { Debug.Log("GAME OVER"); //enable gameover script and display gameOverMenuUI.SetActive(true); GameOver_Menu gom = FindObjectOfType <GameOver_Menu> (); gom.enabled = true; //disable pause menu script Pause_Menu pm = FindObjectOfType <Pause_Menu> (); pm.enabled = false; //disable pause menu script to avoid interaction }