Beispiel #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);
            }
        }
Beispiel #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>();
            }
        }
Beispiel #4
0
 void SetInitialReferences()
 {
     playerMaster = GetComponent <Player_Master>();
 }
Beispiel #5
0
 void SetInitialReferences()
 {
     inventoryUIScript = GameObject.Find("GameManager").GetComponent <GameManager_ToggleInventoryUI>();
     playerMaster      = GetComponent <Player_Master>();
 }
Beispiel #6
0
 void SetInitialReferences()
 {
     gameManagerMaster = GameObject.Find("GameManager").GetComponent <GameManager_Master>();
     playerMaster      = GetComponent <Player_Master>();
 }