void SetInitialReferences() { if (GetComponent <Item_Master>() != null) { itemMaster = GetComponent <Item_Master>(); } destructibleMaster = GetComponent <Destructible_Master>(); }
void SetInitialReferences() { vehicleMaster = GetComponent <Vehicle_Master>(); if (GetComponent <Destructible_Master>() != null) { destructibleMaster = GetComponent <Destructible_Master>(); } }
void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); if (GetComponent <Rigidbody>() != null) { myRigidbody = GetComponent <Rigidbody>(); } }
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>(); }
void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); if (GameObject.Find("GameManager").GetComponent <GameManager_NPCRelationsMaster>() != null) { npcRelationsMaster = GameObject.Find("GameManager").GetComponent <GameManager_NPCRelationsMaster>(); } if (playerTag == "") { playerTag = "Player"; } }
void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); }
void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); myTransform = transform; }
void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); //startingHealth = health; }