Ejemplo n.º 1
0
 protected void GivePlayerDamage(float hit, bool headHit, GameObject playerBody)
 {
     if (additionalTarget != null)
     {
         AdditionalTargetController at = playerBody.GetComponentInChildren <AdditionalTargetController>();
         if (at != null)
         {
             at.TakeHit(hit);
         }
     }
     else
     {
         PlayerBodyController pb = playerBody.GetComponentInChildren <PlayerBodyController>();
         if (pb != null)
         {
             pb.PlayerTakeHit(hit, headHit);
         }
     }
 }
Ejemplo n.º 2
0
 public virtual void SetAdditionalTarget(AdditionalTargetController target)
 {
     this.additionalTarget = target;
 }