mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-29 07:20:19 +00:00
run exception-safe
This commit is contained in:
parent
756f7e8563
commit
83659395e1
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ namespace SanAndreasUnity.Utilities
|
||||||
public void Damage (DamageInfo info)
|
public void Damage (DamageInfo info)
|
||||||
{
|
{
|
||||||
this.LastDamageInfo = info;
|
this.LastDamageInfo = info;
|
||||||
m_onDamage.Invoke ();
|
|
||||||
|
F.RunExceptionSafe(() => m_onDamage.Invoke());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void HandleDamageByDefault ()
|
public void HandleDamageByDefault ()
|
||||||
|
|
Loading…
Reference in a new issue