Exemplo n.º 1
0
 void SetInitialReferences()
 {
     gunMaster             = GetComponent <Gun_Master>();
     gunAnimation          = GetComponent <Gun_Animation>();
     myTransform           = transform;
     gunMaster.isGunLoaded = true;
 }
Exemplo n.º 2
0
        void SetInitialReferences()
        {
            gunMaster    = GetComponentInParent <Gun_Master>();
            gunAnimation = GetComponentInParent <Gun_Animation>();
            gunSounds    = GetComponentInParent <Gun_Sounds>();
            gunAim       = GetComponent <Gun_Aim>();

            if (GameManager_References._player != null)
            {
                playerMaster  = GameManager_References._player.GetComponent <Player_Master>();
                playerAmmoBox = GameManager_References._player.GetComponent <Player_AmmoBox>();
            }
        }