blob: 558a8c9d84b6d12c32d8435f542649cfb0ea172d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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();
}
}
|