using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class CurrentJudgment : MonoBehaviour
{
///
/// 验电笔
///
public CheckCurrent testPen;
///
/// 验电笔媳妇位置和角度
///
public Vector3 penPos,penRot;
public bool 是否带电;
// Start is called before the first frame update
void Start()
{
}
private void OnMouseDown()
{
if (testPen.gameObject.activeInHierarchy)
{
if (testPen.isOperation)
return;
testPen.transform.SetParent(this.transform);
testPen.transform.DOLocalMove(penPos, 1.5f).OnComplete(()=> {
testPen.Inspection(是否带电);
});
testPen.transform.DOLocalRotate(penRot, 1.5f);
}
}
}