Beispiel #1
0
 void OnAttacked(AttackMessageArgs msg)
 {
     if (!isAttached)
     {
         msg.recieved = true;
         PlayerHealth playerHealth = msg.sender.GetComponentInParent <PlayerHealth>();
         if (playerHealth)
         {
             playerHealth.AttachEye(transform, isRight);
         }
     }
 }