示例#1
0
 void Update()
 {
     if (isDone)
     {
         gameOver.SetActive(true);
         trsrpt.GameOver();
         trscrpt.GameOver();
     }
 }
示例#2
0
    void Update()
    {
        CurrentTime         -= IncreaseT * Time.deltaTime;
        transform.localScale = new Vector3((CurrentTime / MaxTime), 1, 1);
        if (CurrentTime <= 0)
        {
//			trsrpt.GameOver ();
            trscrpt.GameOver();
            winScore.SetActive(true);
            Destroy(tapRef);
            Destroy(triggerRef);
            if (colRef._score == colRef._shtuki)
            {
                ConditionToWin();
            }
            else
            {
                gameOver.SetActive(true);
            }
        }
    }