43 lines
997 B
C#
43 lines
997 B
C#
|
/********************************************************************
|
|||
|
文件: 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();
|
|||
|
SqliteManager.Inst.Connect();
|
|||
|
AudioManager.Inst.Init();
|
|||
|
ReInputManager.Inst.Init();
|
|||
|
UIManager.Inst.Init();
|
|||
|
|
|||
|
DontDestroyOnLoad(gameObject);
|
|||
|
Application.runInBackground = true;
|
|||
|
|
|||
|
OnInit();
|
|||
|
}
|
|||
|
|
|||
|
public virtual void OnInit()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
private void OnDestroy()
|
|||
|
{
|
|||
|
SqliteManager.Inst.DisConnect();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|