diff --git a/Assets/Scripts/Behaviours/Ped/Ped.cs b/Assets/Scripts/Behaviours/Ped/Ped.cs index 76b2e249..16cd3c48 100644 --- a/Assets/Scripts/Behaviours/Ped/Ped.cs +++ b/Assets/Scripts/Behaviours/Ped/Ped.cs @@ -131,6 +131,7 @@ namespace SanAndreasUnity.Behaviours public string DescriptionForLogging => "(netId = " + this.netId + ")"; + public static event System.Action onAwake = delegate {}; public static event System.Action onStart = delegate {}; @@ -149,6 +150,8 @@ namespace SanAndreasUnity.Behaviours this.Awake_Net(); + F.InvokeEventExceptionSafe(onAwake, this); + } void Start()