void GameTutor() //教學頁狀態UI設定 { IsTutoring = true; GameTitle.SetActive(false); TitleText.SetActive(false); TutorialText.SetActive(true); ReButtonSmall.SetActive(true); //遊戲中熱鍵 ReTextSmall.SetActive(true); ExitButtonSmall.SetActive(true); ExitTextSmall.SetActive(true); }
void GameSettings() { GameInstance = (GameObject)Instantiate(GameInstancePrefab); TitleText.SetActive(false); //TitleCamera.SetActive (false); sphereController.SetActive(false); cubesController.GetComponent <CubesController> ().GameStart(); InstanceStage = (GameObject)Instantiate(StagePrefab, Vector3.zero, Quaternion.identity); InstanceStage.transform.parent = GameInstance.transform; Enhanced.SetActive(true); Menu.SetActive(false); }
public void LoggedIn() { LoginButtonText.GetComponent <TextMeshProUGUI>().fontSize = 23.28f; LoginButtonText.GetComponent <TextMeshProUGUI>().text = "Connect"; loggedIn = true; Destroy(LoginButton); LoginButton.SetActive(false); LoginButtonCover.SetActive(false); UserLoginText.SetActive(false); PasswordText.SetActive(false); TitleText.SetActive(false); HeadingPanel.SetActive(false); HeadingText.SetActive(false); FadeoutPanel.SetActive(true); RegisterButton.SetActive(false); }
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); }