void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); if (GetComponent <Rigidbody>() != null) { myRigidbody = GetComponent <Rigidbody>(); } }
void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); playerMaster = GameObject.FindWithTag("Player").GetComponent <Player_Master>(); if (GetComponent <Item_Master>() == null) { Destroy(this); } }
void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); }
void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); myTransform = transform; }
void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); startingHealth = health; }