2024-10-11 10:12:15 +08:00
|
|
|
|
/********************************************************************
|
|
|
|
|
文件: Boot.cs
|
|
|
|
|
作者: 梦语
|
|
|
|
|
邮箱: 1982614048@qq.com
|
|
|
|
|
创建时间: 2024/03/29 17:28:19
|
|
|
|
|
最后修改: 梦语
|
|
|
|
|
最后修改时间: 2024/04/07 09:38:53
|
|
|
|
|
功能: 启动脚本
|
|
|
|
|
*********************************************************************/
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Ether
|
|
|
|
|
{
|
|
|
|
|
public class Boot : SingletonForMono<Boot>
|
|
|
|
|
{
|
|
|
|
|
private void Start()
|
|
|
|
|
{
|
|
|
|
|
PoolManager.Inst.Init();
|
2024-10-28 10:41:55 +08:00
|
|
|
|
//SqliteManager.Inst.Connect();
|
2024-10-11 10:12:15 +08:00
|
|
|
|
AudioManager.Inst.Init();
|
2024-10-28 10:41:55 +08:00
|
|
|
|
EtherInputManager.Inst.Init();
|
2024-10-11 10:12:15 +08:00
|
|
|
|
UIManager.Inst.Init();
|
|
|
|
|
|
|
|
|
|
DontDestroyOnLoad(gameObject);
|
|
|
|
|
Application.runInBackground = true;
|
|
|
|
|
|
|
|
|
|
OnInit();
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-28 10:41:55 +08:00
|
|
|
|
protected virtual void OnInit()
|
2024-10-11 10:12:15 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OnDestroy()
|
|
|
|
|
{
|
2024-10-28 10:41:55 +08:00
|
|
|
|
//SqliteManager.Inst.DisConnect();
|
2024-10-11 10:12:15 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|