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.

63 lines
1.1 KiB

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
using UnityEngine.UI;
namespace DisComputer
{
/// <summary>
/// 指令控制
/// </summary>
public class IIICmdControll : MonoBehaviour
{
//开始按钮
public Button start_btn;
//运算选项
public OptionsView optionsView;
//硬盘
public Transform yingPanTran;
//命令标题文本
public Text cmd_txt;
// Start is called before the first frame update
void Start()
{
start_btn.onClick.AddListener(OnClickStart);
}
/// <summary>
/// 点击开始
/// </summary>
void OnClickStart()
{
IIINonNeumannControll.Instance.ShowVonSetView();
start_btn.gameObject.SetActive(false);
}
/// <summary>
/// 设置指令信息
/// </summary>
public void SetCmdInfo()
{
cmd_txt.text = VonNeumann.data.command.ToString();
}
}
}