35 lines
768 B
C#
35 lines
768 B
C#
using UnityEngine;
|
|
using XFrame.Core.Localization;
|
|
using XFrame.Core.UI;
|
|
using XFrame.Core.Utils;
|
|
|
|
public class GameMain2 : MonoBehaviour
|
|
{
|
|
public static GameMain2 Intance { get; private set; }
|
|
private void Awake()
|
|
{
|
|
//保持只有一个
|
|
if (Intance == null)
|
|
{
|
|
Intance = this;
|
|
}
|
|
else if (Intance != this)
|
|
{
|
|
Destroy(this.gameObject);
|
|
}
|
|
}
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
GameObject.Find("UIRoot3").SetActive(false);
|
|
Singleton<Localization>.Create().Language = Localization.CHINESE;
|
|
XUIPanel.ShowPanel<TaishiPanel>();
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|