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); }
public void GameOver() //遊戲失敗函式,以ShipController呼叫 { Instantiate(BoomSound); IsPlaying = false; HpText.SetActive(false); ReButtonSmall.SetActive(false); ReTextSmall.SetActive(false); ExitButtonSmall.SetActive(false); ExitTextSmall.SetActive(false); OverTitle.SetActive(true); ReButton.SetActive(true); ReText.SetActive(true); ExitButton.SetActive(true); ExitText.SetActive(true); }
void Succeed() //通關函式,在通關後一小段間隔跳出通關文字 { EndTime += Time.deltaTime; if (EndTime > 1) { ReButtonSmall.SetActive(false); ReTextSmall.SetActive(false); ExitButtonSmall.SetActive(false); ExitTextSmall.SetActive(false); GoodText.SetActive(true); ReButton.SetActive(true); ReText.SetActive(true); ExitButton.SetActive(true); ExitText.SetActive(true); } }