Пример #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()
    {
        // Variables to hold the scripts on other game objects so that we can manipulate them from this script
        mouse 		= pc.GetComponent <MouseLook> ();
        movement 	= pc.GetComponent <CharacterMotor> ();
        cam 		= Camera.main.GetComponent <MouseLook> ();
        menu 		= this.GetComponent <menuScript> ();
        message 	= text.GetComponent <uiSystem> ();
        pic 		= picture.GetComponent <pictureScript> ();
        cursor		= gui.GetComponent <guiSystem> ();

        if (Application.loadedLevel == 3)
        {
            talk 	= SH.GetComponent <playerScript> ();
        }

        else
        {
            talk 	= pc.GetComponent <playerScript> ();
        }
    }
Пример #4
0
 void Awake()
 {
     // Variables to hold the scripts on other game objects so that we can manipulate them from this script
     cam 		= holder.GetComponent <cameraScript> ();
     //chosen 		= holder.GetComponent <timeChanger> ();
     menu 		= holder.GetComponent <menuScript> ();
     message 	= text.GetComponent <uiSystem> ();
     mouse 		= pc.GetComponent <MouseLook> ();
     look 		= Camera.main.GetComponent <MouseLook> ();
     movement 	= pc.GetComponent <CharacterMotor> ();
     info 		= this.GetComponent <displayInfo> ();
     talk 		= pc.GetComponent <playerScript> ();
     pic 		= picture.GetComponent <pictureScript> ();
     cursor 		= gui.GetComponent <guiSystem> ();
 }