chore: initial commit
This commit is contained in:
25
Packages/com.opsive.shared/Runtime/Events/DomainResetter.cs
Normal file
25
Packages/com.opsive.shared/Runtime/Events/DomainResetter.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
/// ---------------------------------------------
|
||||
/// Opsive Shared
|
||||
/// Copyright (c) Opsive. All Rights Reserved.
|
||||
/// https://www.opsive.com
|
||||
/// ---------------------------------------------
|
||||
|
||||
namespace Opsive.Shared.Events
|
||||
{
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// Resets the event handler static variables.
|
||||
/// </summary>
|
||||
public class DomainResetter
|
||||
{
|
||||
/// <summary>
|
||||
/// Reset the static variables for domain reloading.
|
||||
/// </summary>
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
||||
public static void DomainReset()
|
||||
{
|
||||
EventHandler.DomainReset();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user