角色死亡
This commit is contained in:
@@ -226,6 +226,11 @@ namespace Continentis.MainGame.Character
|
||||
{
|
||||
ModifyAttribute("Health", -damage);
|
||||
MainGameManager.Instance.basePrefabs.GenerateHurtText(damage, characterView);
|
||||
|
||||
if (GetAttribute("Health") <= 0)
|
||||
{
|
||||
Die();
|
||||
}
|
||||
}
|
||||
|
||||
public void Heal(int heal)
|
||||
|
||||
Reference in New Issue
Block a user