예제 #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
    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);
    }
예제 #3
0
    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);
        }
    }