mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 12:33:02 +00:00
add Ped.onAwake event
This commit is contained in:
parent
6e23e3a97c
commit
985054b648
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue