public void CallEventObjectThrow() { if (EventObjectThrow != null) { EventObjectThrow(); } playerMaster.CallEventHandsEmpty(); playerMaster.CallEventInventoryChanged(); }
void ForcePlayerInventoryUpdate() { if (playerMaster != null) { playerMaster.CallEventInventoryChanged(); } }
void HealPlayer() { if (myTransform.parent != null) { myTransform.parent = null; playerMaster.CallEventInventoryChanged(); playerMaster.CallEventPlayerHealthIncrease(healthIncrease); Destroy(gameObject); } else { playerMaster.CallEventPlayerHealthIncrease(healthIncrease); Destroy(gameObject); } }