예제 #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> ();
 }