This commit is contained in:
陈向学 2024-09-05 13:59:56 +08:00
parent 9beaa384cd
commit 5684b01a10
2 changed files with 4 additions and 4 deletions
Assets/Scripts/CXX/Devices/直接接入式电能计量装置

View File

@ -80,7 +80,7 @@ public class Device_3Phase4WireMeter : Device_Base
{
//盖子拆除
cover.isOpen = true;
cover.transform.localPosition = new Vector3(0.0001220703f, -0.1388763f, -0.2485413f);
cover.transform.localPosition = new Vector3(0.0001220703f, 0.1388763f, -0.2485413f);
//左螺丝拧下
cover.cover_screw_Left.isInstall = false;
cover.cover_screw_Left.transform.localPosition = new Vector3(cover.cover_screw_Left.transform.localPosition.x, -0.1840515f, -0.2512321f);
@ -95,7 +95,7 @@ public class Device_3Phase4WireMeter : Device_Base
{
//盖子盖上
cover.isOpen = false;
cover.transform.localPosition = new Vector3(0.0001220703f, 0.01112366f, -0.09854126f);
cover.transform.localPosition = new Vector3(0.0001220703f, -0.01112366f, -0.09854126f);
//左螺丝拧上
cover.cover_screw_Left.isInstall = true;
cover.cover_screw_Left.transform.localPosition = new Vector3(cover.cover_screw_Left.transform.localPosition.x, -0.01405334f, -0.1012321f);

View File

@ -166,7 +166,7 @@ public class Device_Cover : Device_Base
Transform parent = cover_screw_Left.transform.parent;
cover_screw_Left.transform.parent = transform;
cover_screw_Right.transform.parent = transform;
transform.DOLocalMove(new Vector3(transform.localPosition.x, -0.1388763f, -0.2485413f), 2).OnComplete(() =>
transform.DOLocalMove(new Vector3(transform.localPosition.x, 0.1388763f, -0.2485413f), 2).OnComplete(() =>
{
isOpen = true;
cover_screw_Left.transform.parent = parent;
@ -191,7 +191,7 @@ public class Device_Cover : Device_Base
Transform parent = cover_screw_Left.transform.parent;
cover_screw_Left.transform.parent = transform;
cover_screw_Right.transform.parent = transform;
transform.DOLocalMove(new Vector3(transform.localPosition.x, 0.01112366f, -0.09854126f), 2).OnComplete(() =>
transform.DOLocalMove(new Vector3(transform.localPosition.x, -0.01112366f, -0.09854126f), 2).OnComplete(() =>
{
isOpen = false;
cover_screw_Left.transform.parent = parent;