mirror of
https://git.shazbot.fr/shazbot/Utils.git
synced 2026-01-12 05:00:58 +01:00
27 lines
495 B
C#
27 lines
495 B
C#
using UnityEngine;
|
|
|
|
namespace Utils
|
|
{
|
|
public class PhysicsEventManager : MonoBehaviour
|
|
{
|
|
private void Awake()
|
|
{
|
|
Application.quitting += OnQuitting;
|
|
}
|
|
|
|
private void OnDestroy()
|
|
{
|
|
Application.quitting -= OnQuitting;
|
|
}
|
|
|
|
private void FixedUpdate()
|
|
{
|
|
App.InvokeFixedUpdate();
|
|
}
|
|
|
|
private void OnQuitting()
|
|
{
|
|
App.ClearFixedUpdate();
|
|
}
|
|
}
|
|
} |