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); }
IEnumerator MissionShow() { Main_Camera.SetActive(false); UI_Camera.AddComponent <AudioListener>(); UIAudioSrc.Play(); yield return(new WaitForSeconds(UIAudioSrc.clip.length)); Debug.LogWarning("10012_C02_wav.aax播放完毕,进入关卡"); BackGroundPic.SetActive(false); ULabel.SetActive(false); Main_Camera.SetActive(true); Spotlight.SetActive(false); Scene_BGM.Play(); JoyStickPanel_Left.SetActive(true); DragButton.SetActive(true); playerManager.loadJoyStick(); }