Beispiel #1
0
 void SetInitialReferences()
 {
     if (GameManager_References._player != null)
     {
         playerMaster = GameManager_References._player.GetComponent <Player_Master>();
     }
 }
Beispiel #2
0
 void SetInitialReferences()
 {
     //Added for a unknown reason, because of Script Execution Order's
     //late initialization of GameManager_References or something(._.).
     if (GameManager_References._player != null)
     {
         playerMaster = GameManager_References._player.GetComponent <Player_Master>();
         playerHealth = playerMaster.GetComponent <Player_Health>().playerHealth;
     }
 }
        void SetInitialReferences()
        {
            if (GetComponent <Item_Master>() == null)
            {
                this.enabled = false;
            }

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

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