IndieGame/client/Assets/Ether/Scripts/Boot.cs

43 lines
997 B
C#
Raw Normal View History

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();
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();
}
}
}