コード例 #1
0
 void Awake()
 {
     movement 	= pc.GetComponent <CharacterMotor> ();
     message 	= text.GetComponent <uiSystem> ();
     cam 		= holder.GetComponent <cameraScript> ();
     menu 		= holder.GetComponent <menuScript> ();
 }
コード例 #2
0
ファイル: doorScript.cs プロジェクト: ZachOlivier/SavePoint
 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> ();
 }
コード例 #3
0
ファイル: icScript.cs プロジェクト: ZachOlivier/SavePoint
 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> ();
     talk 		= pc.GetComponent <playerScript> ();
     menu 		= holder.GetComponent <menuScript> ();
     inventory 	= holder.GetComponent <cameraScript> ();
     message 	= text.GetComponent <uiSystem> ();
 }
コード例 #4
0
ファイル: displayInfo.cs プロジェクト: ZachOlivier/SavePoint
    void Awake()
    {
        message		= text.GetComponent <uiSystem> ();

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

        if (Application.loadedLevel == 3)
        {
            irma = pc.GetComponent <irmaScript> ();
        }
    }
コード例 #5
0
ファイル: menuScript.cs プロジェクト: ZachOlivier/SavePoint
    //private pictureScript	pic;
    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> ();
        inventory 	= this.GetComponent <cameraScript> ();
        message 	= text.GetComponent <uiSystem> ();
        cursor		= gui.GetComponent <guiSystem> ();
        //pic 		= picture.GetComponent <pictureScript> ();

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

        else
        {
            talk 	= pc.GetComponent <playerScript> ();
        }
    }
コード例 #6
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> ();
 }
コード例 #7
0
 void Awake()
 {
     message = Text.GetComponent <uiSystem> ();
 }
コード例 #8
0
ファイル: irmaScript.cs プロジェクト: ZachOlivier/SavePoint
 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 		= this.GetComponent <MouseLook> ();
     look 		= Camera.main.GetComponent <MouseLook> ();
     movement 	= this.GetComponent <CharacterMotor> ();
     talk 		= this.GetComponent <playerScript> ();
     core 		= Core.GetComponent <displayInfo> ();
     daphne		= Daphne.GetComponent <displayInfo> ();
     ic			= Core.GetComponent <icScript> ();
     scepter		= scepterBroken.GetComponent <displayInfo> ();
     okScepter	= Scepter.GetComponent <displayInfo> ();
     cursor		= gui.GetComponent <guiSystem> ();
 }
コード例 #9
0
 void Awake()
 {
     talk 		= william.GetComponent <securityBehavior> ();
     message 	= text.GetComponent <uiSystem> ();
 }