using System.Collections; using System.Collections.Generic; using UnityEngine; public class ApplicationMain : MonoBehaviour { void Start() { _InputManager.Instance.Init(); PhysicsWorld.Instance.Init(); PhysicsWorld.Instance.onUpdate += OnPhysicsUpdate; } void Update() { _InputManager.Instance.Update(); AvatarManager.Instance.OnUpdate(); PhysicsWorld.Instance.Update(); } void OnPhysicsUpdate() { HitManager.Instance.OnPhysicsUpdate(); AvatarManager.Instance.OnPhysicsUpdate(); } private void OnDrawGizmos() { PhysicsWorld.Instance.DrawGizmos(); } }