From 985054b648c0549909d71901c6e909960c1b32b7 Mon Sep 17 00:00:00 2001 From: in0finite Date: Sun, 21 Feb 2021 01:39:39 +0100 Subject: [PATCH] add Ped.onAwake event --- Assets/Scripts/Behaviours/Ped/Ped.cs | 3 +++ 1 file changed, 3 insertions(+) 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()