示例#1
0
    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);
    }
示例#2
0
 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);
 }
示例#4
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);
 }