public override void OnUnitDying(CUnit unit) { if (mTarget != null && mTarget.GetUnitId() == unit.GetUnitId()) { mTarget = null; mDamageSkipTime = 0.0f; SetStatus(UNIT_STATUS.US_MOVE); } }
public override void OnUnitDying(CUnit unit) { if (mTarget != null && mTarget.GetUnitId() == unit.GetUnitId()) { mTarget = null; mDamageSkipTime = 0.0f; SetStatus(UNIT_STATUS.US_MOVE); } }