add Ped.onAwake event

This commit is contained in:
in0finite 2021-02-21 01:39:39 +01:00
parent 6e23e3a97c
commit 985054b648

View file

@ -131,6 +131,7 @@ namespace SanAndreasUnity.Behaviours
public string DescriptionForLogging => "(netId = " + this.netId + ")";
public static event System.Action<Ped> onAwake = delegate {};
public static event System.Action<Ped> onStart = delegate {};
@ -149,6 +150,8 @@ namespace SanAndreasUnity.Behaviours
this.Awake_Net();
F.InvokeEventExceptionSafe(onAwake, this);
}
void Start()