35 lines
841 B
C#
35 lines
841 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using XFrame.Core.Localization;
|
|
using XFrame.Core.UI;
|
|
using XFrame.Core.Utils;
|
|
public class GameMain1 : MonoBehaviour
|
|
{
|
|
|
|
public static GameMain1 Intance { get; private set; }
|
|
private void Awake()
|
|
{
|
|
//保持只有一个
|
|
if (Intance == null)
|
|
{
|
|
Intance = this;
|
|
}
|
|
else if (Intance != this)
|
|
{
|
|
Destroy(this.gameObject);
|
|
}
|
|
}
|
|
|
|
public List<ItemData> itemDatas = new List<ItemData>();
|
|
internal string text;
|
|
|
|
//public string text = null;
|
|
private void Start()
|
|
{
|
|
GameObject.Find("UIRoot2").SetActive(false);
|
|
Singleton<Localization>.Create().Language = Localization.CHINESE;
|
|
//XUIPanel.ShowPanel<ReplayPanel>();
|
|
XUIPanel.ShowPanel<DoublePlay>();
|
|
}
|
|
}
|