コード例 #1
0
 public void GameOver_prop()
 {
     BackGroundPic.SetActive(true);
     JoyStickPanel_Left.SetActive(false);
     DragButton.SetActive(false);
     GameOver_Menu.SetActive(true);
     Destroy(Main_Camera.GetComponent <CameraFollow>());
 }
コード例 #2
0
 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);
 }
コード例 #3
0
        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
        }