You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
871 B
C#
39 lines
871 B
C#
using UnityEngine;
|
|
|
|
namespace Game
|
|
{
|
|
public class Driver : MonoBehaviour
|
|
{
|
|
void Start()
|
|
{
|
|
// NetManager.Create();
|
|
SyncSolution.Sync();
|
|
GameManager.Create();
|
|
DontDestroyOnLoad(gameObject);
|
|
}
|
|
|
|
void Update()
|
|
{
|
|
// NetManager.instance.Update();
|
|
GameManager.Instance.Update();
|
|
}
|
|
void FixedUpdate()
|
|
{
|
|
GameManager.Instance.FixedUpdate();
|
|
}
|
|
void LateUpdate()
|
|
{
|
|
GameManager.Instance.LateUpdate();
|
|
}
|
|
private void OnDestroy()
|
|
{
|
|
// NetManager.instance.OnDestroy();
|
|
GameManager.Instance.OnDestroy();
|
|
}
|
|
private void OnApplicationQuit()
|
|
{
|
|
OnDestroy();
|
|
}
|
|
}
|
|
}
|