summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/GameApp.cs
blob: 2bbb5f455ca0eeec0452c8d5567aedb8d6e0754a (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
34
35
36
37
38
39
40
41
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[DisallowMultipleComponent]
public class GameApp : MonoBehaviour
{

	public static GameApp Instance
	{
		get;
		private set;
	}

	private void Awake()
	{
		Instance = this;
	}

	void Start()
    {
		PlayerManager.Instance.Init();
		BattleManager.Instance.Init();
    }

    void Update()
    {
		//¹«¹²Ä£¿é
		GameLoop.Instance.Update();
		TinyCountDown.Instance.Update();

		BattleManager.Instance.Update();
		PlayerManager.Instance.Update();
	}

	void LateUpdate()
	{
		
	}

}