Exemplo n.º 1
0
    void Update()
    {
        if (Tips.GetNumberTip() == 5 && TouchController.activeSelf)
        {
            Timer.Stop();
            TouchController.SetActive(false);
            ContinueButton.SetActive(true);
            Tips.ChangeTip();
        }

        if (ColorCube.CheckWin() && GameIsOn && !player.InMove())
        {
            win = true;
            ContinueButton.SetActive(true);
            Timer.Stop();
            TouchController.SetActive(false);
            GameIsOn = false;
        }

        //if (!GameIsOn)
        //    Timer.Stop();

        if (player.InMove())
        {
            Prompts.ReturnToInitState();
        }
    }
Exemplo n.º 2
0
 void Update()
 {
     if (ColorCube.CheckWin() && GameIsOn && !player.InMove())
     {
         ContinueButton.SetActive(true);
         TouchController.SetActive(false);
         GameIsOn = false;
         Tips.CompletTip();
     }
 }
Exemplo n.º 3
0
 void Update()
 {
     if (ColorCube.CheckWin() && GameIsOn && !player.InMove())
     {
         ContinueButton.SetActive(true);
         Timer.Stop();
         TouchController.SetActive(false);
         GameIsOn = false;
     }
     if (player.InMove())
     {
         Prompts.ReturnToInitState();
     }
 }