run exception-safe

This commit is contained in:
in0finite 2020-05-17 02:17:52 +02:00
parent 756f7e8563
commit 83659395e1

View file

@ -27,7 +27,8 @@ namespace SanAndreasUnity.Utilities
public void Damage (DamageInfo info)
{
this.LastDamageInfo = info;
m_onDamage.Invoke ();
F.RunExceptionSafe(() => m_onDamage.Invoke());
}
public void HandleDamageByDefault ()