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

43 lines
1007 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();
2024-10-11 10:12:15 +08:00
AudioManager.Inst.Init();
EtherInputManager.Inst.Init();
2024-10-11 10:12:15 +08:00
UIManager.Inst.Init();
DontDestroyOnLoad(gameObject);
Application.runInBackground = true;
OnInit();
}
protected virtual void OnInit()
2024-10-11 10:12:15 +08:00
{
}
private void OnDestroy()
{
//SqliteManager.Inst.DisConnect();
2024-10-11 10:12:15 +08:00
}
}
}