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 是否带电; // public GameObject 验电笔; // Start is called before the first frame update void Start() { } //private void OnMouseDown() //{if (testPen == null) // return; // 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); // } //} }