public override void OnCreate()
{
base.OnCreate();
AddChildComponentMouseClick("PlayBtn", OnPlayBtnClick);
AddChildComponentMouseClick("ClearBtn", delegate()
{
PlayerPrefs.DeleteAll(); //删除进度
Unibiller.DebitBalance("gold", Unibiller.GetCurrencyBalance("gold"));
});
AddChildComponentMouseClick("RecoverHeartBtn", delegate()
{
GlobalVars.AddHeart(5);
});
AddChildComponentMouseClick("AddCoinBtn", delegate()
{
Unibiller.CreditBalance("gold", 100);
});
AddChildComponentMouseClick("DebugBtn", delegate()
{
++m_clickDebugCount;
if (m_clickDebugCount >= 3 && (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer))
{
m_debugBoard.SetActive(true);
}
});
m_developerMode = UIToolkits.FindComponent<UIToggle>(mUIObject.transform, "DeveloperCheck");
m_developerMode.value = false;
m_testLabel = GetChildComponent<UILabel>("TestNotice");
m_debugBoard = mUIObject.transform.FindChild("DebugBoard").gameObject;
}
public override void OnShow()