Fix: cleanup and minor perf improvements
This commit is contained in:
@@ -8,6 +8,21 @@ namespace Unheimlich.Core
|
||||
/// </summary>
|
||||
public static class PlayerEvents
|
||||
{
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
||||
private static void ResetAll()
|
||||
{
|
||||
OnJump = null;
|
||||
OnTeleport = null;
|
||||
OnCameraShake = null;
|
||||
OnDiapasonEquip = null;
|
||||
OnDiapasonUnequip = null;
|
||||
OnDiapasonTap = null;
|
||||
OnEnterDialogue = null;
|
||||
OnExitDialogue = null;
|
||||
OnEnterListening = null;
|
||||
OnExitListening = null;
|
||||
}
|
||||
|
||||
// Movement events
|
||||
public static event System.Action OnJump;
|
||||
public static event System.Action<Vector3, Quaternion> OnTeleport;
|
||||
|
||||
Reference in New Issue
Block a user