ui基本完毕,修了一大把的bug
This commit is contained in:
@@ -159,6 +159,15 @@ public class EnemyCombatant : MonoBehaviour, ICombatant
|
||||
ModifyHP(-delta, true);
|
||||
|
||||
int actual = before - currentHP;
|
||||
if (actual > 0 && source != null && teamUIController.Instance != null)
|
||||
{
|
||||
var sourceAlly = source.GetComponent<AllyCombatant>();
|
||||
if (sourceAlly != null)
|
||||
{
|
||||
teamUIController.Instance.RecordDamage(sourceAlly.slotIndex, actual);
|
||||
}
|
||||
}
|
||||
|
||||
GameplaySkillLogger.RecordEnemyHpEvent(
|
||||
gameObject.name,
|
||||
"Damage",
|
||||
|
||||
Reference in New Issue
Block a user