示例#1
0
    void OnMouseDown()
    {
        GameObject      controller = GameObject.FindGameObjectWithTag("GameController");
        ControleDeFases script     = controller.GetComponent("ControleDeFases") as ControleDeFases;

        gameObject.SetActive(false);
        script.MudarDeFase(FaseDeJogo.Jogo);
    }
示例#2
0
 public void buttonStart()
 {
     if (controller == null)
     {
         controller = GameObject.FindGameObjectWithTag("GameController");
         script     = controller.GetComponent("ControleDeFases") as ControleDeFases;
     }
     //gameObject.SetActive (false);
     script.MudarDeFase(FaseDeJogo.Jogo);
 }