void SetInitialReferences() { destructibleMaster = GetComponent <DestructibleMaster>(); if (GetComponent <Rigidbody>() != null) { myMass = GetComponent <Rigidbody>().mass; } }
void SetInitialReferences() { destructibleMaster = GetComponent <DestructibleMaster>(); if (FindObjectOfType <GameManagerMaster>().GetComponent <GameManagerNPCRelationsMaster>() != null) { nPCRelationsMaster = FindObjectOfType <GameManagerMaster>().GetComponent <GameManagerNPCRelationsMaster>(); } if (playerTag == "") { playerTag = "Player"; } }
void SetInitialReferences() { if (GetComponent <ItemMaster>() == null) { Destroy(this); } if (GameManagerReferences._player != null) { playerMaster = GameManagerReferences._player.GetComponent <PlayerMaster>(); } destructibleMaster = GetComponent <DestructibleMaster>(); }
void SetInitialReferences() { destructibleMaster = GetComponent <DestructibleMaster>(); startingHealth = health; }
void SetInitialReferences() { destructibleMaster = GetComponent <DestructibleMaster>(); }
void SetInitialReferences() { destructibleMaster = GetComponent <DestructibleMaster>(); myTransform = transform; }