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