Ejemplo n.º 1
0
    void Start()
    {
        this.goControle1 = GameObject.FindGameObjectWithTag("qtecontrole");
        this.jogo1       = goControle1.GetComponent <QTEControle>() as QTEControle;

        this.goControle2 = GameObject.FindGameObjectWithTag("controlesocial");
        this.jogo2       = goControle2.GetComponent <ControleJogo3>() as ControleJogo3;

        this.goControle3 = GameObject.FindGameObjectWithTag("runnercontrole");
        this.jogo3       = goControle3.GetComponent <ControleRunner>() as ControleRunner;

        this.estadoAtual  = GameState.INICIO;
        this.caixaDialogo = new Rect(Screen.width / 2 - 300, Screen.height / 2 - 200, 600, 400);
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     goControle = GameObject.FindGameObjectWithTag("qtecontrole");
     controle   = goControle.GetComponent <QTEControle>() as QTEControle;
 }