38 lines
843 B
C#
38 lines
843 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using static BaseConf;
|
|
|
|
public class InsertAndUnplug : MonoBehaviour
|
|
{
|
|
public Conf2 conf2;
|
|
public Vector3 startPos_local;
|
|
public Vector3 startRot_local;
|
|
/// <summary>
|
|
/// 是否为初始状态
|
|
/// </summary>
|
|
public bool isStart = true;
|
|
/// <summary>
|
|
/// 是否在运动
|
|
/// </summary>
|
|
public bool isMove = false;
|
|
|
|
//public Color color_open;
|
|
//public Color color_close;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
if (GetComponent<DeviceQuery>())
|
|
conf2 = GetComponent<DeviceQuery>().conf2;
|
|
|
|
startPos_local = transform.localPosition;
|
|
startRot_local = transform.localEulerAngles;
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|