You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.4 KiB
81 lines
2.4 KiB
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using LzFramework.UI;
|
|
|
|
namespace DisComputer
|
|
{
|
|
/*
|
|
* @func 结算页面控件
|
|
* */
|
|
public class EndFrame : UIShowOrHide
|
|
{
|
|
public Button ok_btn;
|
|
|
|
public Text info_txt;
|
|
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
ok_btn.onClick.AddListener(OnClickOk);
|
|
}
|
|
|
|
public override void OnShow(object data = null)
|
|
{
|
|
base.OnShow(data);
|
|
string infoStr = (string)data;
|
|
info_txt.text = infoStr;
|
|
}
|
|
|
|
public override void OnHide()
|
|
{
|
|
base.OnHide();
|
|
}
|
|
|
|
|
|
private void OnClickOk()
|
|
{
|
|
OnHide();
|
|
TTUIPage.ClosePage<MainMenuView>();
|
|
MessageContainer.SendMessage(null,this, MsgName.TipViewHideOperation);
|
|
/* 分课时暂时注销
|
|
if (GameConfig.state == GameState.Unload)//拆卸完成
|
|
{
|
|
GameConfig.state = GameState.Load;
|
|
MainControl.Instance.SetGameState(MainState.Idle);
|
|
GameConfig.curProgressIndex = -1;
|
|
//恢复相机视距
|
|
MouseControl.Instance.RewindCameraField();
|
|
MouseControl.Instance.ClearSelectTarget();
|
|
RendereSpareControl.Instance.ClearRendererSpare();
|
|
MessageContainer.SendMessage("quit", this, MsgName.ModelControlShowDesktop);
|
|
MessageContainer.SendMessage("",this,MsgName.MainViewClearBar);
|
|
|
|
MainControl.Instance.DelaySetLoad(0.3f,0);
|
|
|
|
}
|
|
else//安装完成
|
|
{
|
|
GameConfig.state = GameState.Unload;
|
|
MainControl.Instance.SetGameState(MainState.Idle);
|
|
//恢复相机视距
|
|
MouseControl.Instance.RewindCameraField();
|
|
MouseControl.Instance.ClearSelectTarget();
|
|
RendereSpareControl.Instance.ClearRendererSpare();
|
|
GameConfig.curProgressIndex = -1;
|
|
MessageContainer.SendMessage("quit", this, MsgName.ModelControlShowDesktop);
|
|
MessageContainer.SendMessage("", this, MsgName.MainViewClearBar);
|
|
MessageContainer.SendMessage("",this,MsgName.SparePartsViewRemoveSpare);
|
|
|
|
MainControl.Instance.DelaySetUnLoad(0.3f,0);
|
|
}
|
|
*/
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|