public void Hurt(int hurtValue)
{
if (!this.IsDead())
{
int num = this.m_refActorAttribBehaviour.m_HP - hurtValue;
this.m_refActorAttribBehaviour.m_HP = Math.Max(0, num);
if (this.m_refActorAttribBehaviour.m_HP <= 0)
{
this.Dead(0);
}
}
请问大神这个怎么改成受到伤害后不死 |
|