示例#1
0
 void Awake()
 {
     key 		= npc.GetComponent <securityBehavior> ();
     //badge 		= maria.GetComponent <mariaBehavior> ();
     badge 		= picture.GetComponent <pictureScript> ();
     taken 		= gui.GetComponent <guiSystem> ();
     message 	= text.GetComponent <uiSystem> ();
     Enemy 		= enemy.GetComponent <enemyBehavior> ();
 }
示例#2
0
    void Awake()
    {
        player 		= PC.GetComponent <playerScript> ();
        inv		 	= holder.GetComponent <cameraScript> ();
        m			= holder.GetComponent <menuScript> ();
        //badge 		= maria.GetComponent <mariaBehavior> ();

        if (Application.loadedLevel == 1)
        {
            key 		= npc.GetComponent <securityBehavior> ();
            badge 		= picture.GetComponent <pictureScript> ();
        }
    }
示例#3
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>();
        }
    }
示例#4
0
 void Awake()
 {
     talk 		= william.GetComponent <securityBehavior> ();
     message 	= text.GetComponent <uiSystem> ();
 }