mirror of
https://git.shazbot.fr/shazbot/Utils.git
synced 2026-01-12 05:00:58 +01:00
27 lines
571 B
C#
27 lines
571 B
C#
using UnityEngine;
|
|
|
|
namespace Utils
|
|
{
|
|
public class EventManager : MonoBehaviour
|
|
{
|
|
private void Update()
|
|
{
|
|
App.InvokeEarlyUpdate();
|
|
App.InvokeUpdate();
|
|
}
|
|
|
|
private void LateUpdate()
|
|
{
|
|
App.InvokeLateUpdate();
|
|
App.InvokeLastUpdate();
|
|
}
|
|
|
|
private void OnApplicationQuit()
|
|
{
|
|
App.ClearUpdate();
|
|
App.ClearLateUpdate();
|
|
App.ClearEarlyUpdate();
|
|
App.ClearLastUpdate();
|
|
}
|
|
}
|
|
} |