private void WasDamaged(InfoCollision info, float damage)
 {
     Debug.Log($"Игрок получил урон:{damage}, источник: {info.Source.name}");
 }
示例#2
0
 /// <summary>
 /// Actions when was damaged
 /// </summary>
 /// <param name="info"></param>
 protected override void WasDamaged(InfoCollision info)
 {
     base.WasDamaged(info);
     SetCondition(Conditions.Angry);
 }