Exemple #1
0
 void SetInitialReferences()
 {
     if (GameManager_References._player != null)
     {
         playerMaster = GameManager_References._player.GetComponent <Player_Master>();
     }
 }
        void SetInitialReferences()
        {
            destructibleMaster = GetComponent <Destructible_Master>();

            playerMaster = GameObject.FindWithTag("Player").GetComponent <Player_Master>();

            if (GetComponent <Item_Master>() == null)
            {
                Destroy(this);
            }
        }
Exemple #3
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>();
            }
        }
 void SetInitialReferences()
 {
     playerMaster = GetComponent <Player_Master>();
 }
Exemple #5
0
 void SetInitialReferences()
 {
     inventoryUIScript = GameObject.Find("GameManager").GetComponent <GameManager_ToggleInventoryUI>();
     playerMaster      = GetComponent <Player_Master>();
 }
Exemple #6
0
 void SetInitialReferences()
 {
     gameManagerMaster = GameObject.Find("GameManager").GetComponent <GameManager_Master>();
     playerMaster      = GetComponent <Player_Master>();
 }