Ejemplo n.º 1
0
    void Awake()
    {
        message		= text.GetComponent <uiSystem> ();

        if (this.gameObject.name == "badge")
        {
            taken = gui.GetComponent <guiSystem> ();
        }

        if (Application.loadedLevel == 3)
        {
            irma = pc.GetComponent <irmaScript> ();
        }
    }
Ejemplo n.º 2
0
    void Awake()
    {
        if (Application.loadedLevel == 1)
        {
            talk = William.GetComponent <securityBehavior>();
            talk2 = Maria.GetComponent <mariaBehavior>();
            talk3 = Richard.GetComponent <richardBehavior>();
            cursor = gui.GetComponent <guiSystem>();
        }

        else if (Application.loadedLevel == 3)
        {
            talk4 = IRMA.GetComponent <irmaScript>();
            cursor = gui.GetComponent <guiSystem>();
        }
    }