Beispiel #1
0
 /// <summary>
 /// Sets the combatant as the target for another combatant
 /// </summary>
 /// <param name="_pAttacker"></param>
 public void BecomeTargetted(iCombatable _pAttacker)
 {
     if (!isAlive)
     {
         return;
     }
     attackers.Remove(_pAttacker);
     attackers.Add(_pAttacker);
 }
 /// <summary>
 /// Gets the combatant component
 /// </summary>
 private void Start() => combatant = GetComponentInParent <iCombatable>();