Esempio n. 1
0
        void SetInitialReferences()
        {
            gunMaster   = GetComponent <Gun_Master>();
            myTransform = transform;

            if (transform.root.GetComponent <NPC_Master>() != null)
            {
                npcMaster = transform.root.GetComponent <NPC_Master>();
            }

            if (transform.root.GetComponent <NPC_StatePattern>() != null)
            {
                npcStatePattern = transform.root.GetComponent <NPC_StatePattern>();
            }
        }
Esempio n. 2
0
        void SetInitialReferences()
        {
            gunMaster = GetComponent <Gun_Master>();

            if (GetComponent <Animator>() != null)
            {
                myAnimator = GetComponent <Animator>();
            }

            if (GameManager_References._player != null)
            {
                playerMaster = GameManager_References._player.GetComponent <Player_Master>();
                ammoBox      = GameManager_References._player.GetComponent <Player_AmmoBox>();
            }
        }
Esempio n. 3
0
 void SetInitialReferences()
 {
     gunMaster = GetComponent <Gun_Master>();
 }
Esempio n. 4
0
 void SetInitialReferences()
 {
     gunMaster    = GetComponent <Gun_Master>();
     myTransform  = transform;
     camTransform = myTransform.parent;
 }