void SetInitialReferences() { itemMaster = GetComponent <Item_Master> (); playerGo = GameManager_References._player; if (isTriggerPickup) { if (GetComponent <Collider> () != null) { GetComponent <Collider> ().isTrigger = true; } if (GetComponent <Rigidbody> () != null) { GetComponent <Rigidbody> ().isKinematic = true; } } }
void SetInitialReferences() { itemMaster = GetComponent <Item_Master> (); myTransform = transform; myRigidbody = GetComponent <Rigidbody> (); }
void SetInitialReferences() { itemMaster = GetComponent <Item_Master> (); }