39 lines
984 B
C#
39 lines
984 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System;
|
|
|
|
public class RecordDebugPanel : MonoBehaviour
|
|
{
|
|
public static RecordDebugPanel instance;
|
|
public Button closeBtn;
|
|
public Text recordText;
|
|
public Button finishButton;
|
|
string result;
|
|
int number;
|
|
|
|
public void Init(int number,string result,Action<bool,string> callback)
|
|
{
|
|
instance = this;
|
|
this.number = number;
|
|
this.result = result;
|
|
recordText.text = result;
|
|
closeBtn.onClick.AddListener(() =>
|
|
{
|
|
RobotUI.Instance.ClosePanel(RobotePanelEnum.RecordDebugPanel.ToString());
|
|
});
|
|
finishButton.onClick.AddListener(() =>
|
|
{
|
|
//»Ø´«Êý¾Ý
|
|
callback(true, result);
|
|
RobotUI.Instance.ClosePanel(RobotePanelEnum.RecordDebugPanel.ToString());
|
|
});
|
|
}
|
|
|
|
public void Init(string str)
|
|
{
|
|
recordText.text = str;
|
|
}
|
|
}
|