Exemple #1
0
 void MenuSetting()
 {
     cc.transform.parent = cc.cam_menu1_pos.transform;
     ResultUI.GetComponent <Animator>().SetBool("On", false);
     Enhanced.SetActive(false);
     //cc.transform.parent = titleCamerapos.transform;
     Destroy(InstanceStage);
     InstanceObsCon.GetComponent <ObstacleControllSync> ().DestroyAll();
     Destroy(InstanceObsCon);
     foreach (GameObject data in players.Values)
     {
         Destroy(data);
     }
     DataClear();
     //MenuStage.SetActive(true);
     //CameraController.Instance.transform.parent = null;
     //MenuStage.GetComponent<Animator>().SetBool("On", false);
     //TitleCamera.SetActive (true);
     //TitleText.SetActive (true);
     TitleText.GetComponent <TitleEffect>().setActive_script(false);
     //sphereController.SetActive (true);
     //cubesController.SetActive (true);
     //cubesController.GetComponent<cubesController> ().CubeSetting ();
     //Menu.SetActive (true);
 }
Exemple #2
0
 void MenuSetting()
 {
     Enhanced.SetActive(false);
     cc.transform.parent = titleCamerapos.transform;
     Destroy(InstanceStage);
     InstanceObsCon.GetComponent <ObstacleControllSync> ().DestroyAll();
     Destroy(InstanceObsCon);
     foreach (GameObject data in players.Values)
     {
         Destroy(data);
     }
     DataClear();
     //TitleCamera.SetActive (true);
     TitleText.SetActive(true);
     sphereController.SetActive(true);
     cubesController.SetActive(true);
     cubesController.GetComponent <CubesController> ().CubeSetting();
     Menu.SetActive(true);
 }