Exemplo n.º 1
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>();
            }
        }
Exemplo n.º 2
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>();
            }
        }
Exemplo n.º 3
0
 void SetInitialReferences()
 {
     gunMaster   = GetComponent <Gun_Master> ();
     myTransform = transform;
 }
Exemplo n.º 4
0
 void SetInitialReferences()
 {
     gunMaster = GetComponent <Gun_Master>();
 }
Exemplo n.º 5
0
 void SetInitialReferences()
 {
     gunMaster             = GetComponent <Gun_Master> ();
     myTransform           = transform;
     gunMaster.isGunLoaded = true;             //So the player can attempt shooting right away.
 }
Exemplo n.º 6
0
 void SetInitialReferences()
 {
     gunMaster             = GetComponent <Gun_Master>();
     myTransform           = transform;
     gunMaster.isGunLoaded = true;
 }