60 lines
976 B
C#
60 lines
976 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
|
|
/// <summary>
|
|
/// 机器人保存坐标
|
|
/// </summary>
|
|
[AddComponentMenu("SaveCoordinateRobot/机器人保存坐标")]
|
|
public class SaveCoordinateRobot : MonoBehaviour
|
|
{
|
|
public static SaveCoordinateRobot Inst;
|
|
public Root myroot = new Root();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void Awake()
|
|
{
|
|
Inst = this;
|
|
}
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
[System.Serializable]
|
|
public class Root
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string code;
|
|
/// <summary>
|
|
/// 操作成功
|
|
/// </summary>
|
|
public string message;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public int data;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string serverTime;
|
|
}
|
|
|
|
}
|