/// <summary> /// 点击游戏设置按钮 /// </summary> /// <param name="go"></param> public void OnSettingBtn(GameObject go) { ToolsFunction.Log(this.gameObject, "点击了查看设置按钮"); SubViewNow = OpenView("SettingView"); //打开设置面板 SubViewNow.GetComponent <SettingView>().HandleAfteerOpenView(); //Singleton<SettingView>.Instance.OpenView(); //打开设置的面板 }
// Usage /// <summary> /// 点击了查看记录的按钮 /// </summary> /// <param name="go"></param> public void OnRecordBtn(GameObject go) { ToolsFunction.Log(this.gameObject, "点击了查看记录按钮"); //CloseView(); //关闭当前界面 SubViewNow = OpenView("RecordView"); SubViewNow.GetComponent <RecordView>().HandleAfteerOpenView(); //Singleton<RecordView>.Instance.OpenView(); //打开游戏记录的界面 }
/// <summary> /// 点击了开始游戏按钮正式进入游戏 /// </summary> /// <param name="go"></param> public void OnStartBtn(GameObject go) { ToolsFunction.Log(this.gameObject, "点击了开始游戏按钮"); //进入就播放倒计时的动画啊 CloseView(); //关闭当前界面 SubViewNow = OpenView("MainView"); SubViewNow.GetComponent <MainView>().HandleAfteerOpenView(); //打开界面后处理的操作 //Singleton<MainView>.Instance.OpenView(); //打开游戏的主界面 }