28 lines
442 B
C#
28 lines
442 B
C#
using UnityEngine;
|
|
|
|
public class Main : MonoBase
|
|
{
|
|
public GameObject console;
|
|
async void Awake()
|
|
{
|
|
//启动框架
|
|
await Framework.Init(gameObject, console);
|
|
//启动游戏
|
|
Game.Init(this);
|
|
}
|
|
void Start()
|
|
{
|
|
Application.targetFrameRate = 60;
|
|
}
|
|
|
|
private void OnApplicationQuit()
|
|
{
|
|
Framework.network.Disconnect();
|
|
}
|
|
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|