This commit is contained in:
parent
227657da5c
commit
da6478bfad
|
@ -47,6 +47,8 @@ public class Device_3Phase4WireMeter : Device_Base
|
|||
Debug.Log("电能表设置为初始状态");
|
||||
//盖子装上的状态
|
||||
CoverInstallState();
|
||||
//封印安装上
|
||||
CoverSealInstallState();
|
||||
//接线螺丝全部拧上状态
|
||||
JieXianScrewInstallState();
|
||||
//铭牌
|
||||
|
@ -60,6 +62,8 @@ public class Device_3Phase4WireMeter : Device_Base
|
|||
Debug.Log("电能表设置为拆下状态");
|
||||
//盖子拆下状态
|
||||
CoverUnstallState();
|
||||
//封印拆掉
|
||||
CoverSealUninstallState();
|
||||
//接线螺丝拧下状态
|
||||
JieXianScrewUninstallState();
|
||||
//固定螺丝拧下状态
|
||||
|
@ -81,13 +85,6 @@ public class Device_3Phase4WireMeter : Device_Base
|
|||
//右螺丝拧下
|
||||
cover.cover_screw_Right.isInstall = false;
|
||||
cover.cover_screw_Right.transform.localPosition = new Vector3(cover.cover_screw_Right.transform.localPosition.x, cover.cover_screw_Right.initPostionY - 0.03f, cover.cover_screw_Right.transform.localPosition.z);
|
||||
//×ó·âÓ¡±»¼ô¿ª
|
||||
cover.cover_seal_Left.isCut = true;
|
||||
cover.cover_seal_Left.gameObject.SetActive(false);
|
||||
//ÓÒ·âÓ¡±»¼ô¿ª
|
||||
cover.cover_seal_Right.isCut = true;
|
||||
cover.cover_seal_Right.gameObject.SetActive(false);
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 盖子装上的状态
|
||||
|
@ -103,6 +100,13 @@ public class Device_3Phase4WireMeter : Device_Base
|
|||
//右螺丝拧上
|
||||
cover.cover_screw_Right.isInstall = true;
|
||||
cover.cover_screw_Right.transform.localPosition = new Vector3(cover.cover_screw_Right.transform.localPosition.x, cover.cover_screw_Right.initPostionY, cover.cover_screw_Right.transform.localPosition.z);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 盖子封印装上
|
||||
/// </summary>
|
||||
public void CoverSealInstallState()
|
||||
{
|
||||
//左封印安装
|
||||
cover.cover_seal_Left.isCut = false;
|
||||
cover.cover_seal_Left.gameObject.SetActive(true);
|
||||
|
@ -111,6 +115,18 @@ public class Device_3Phase4WireMeter : Device_Base
|
|||
cover.cover_seal_Right.gameObject.SetActive(true);
|
||||
}
|
||||
/// <summary>
|
||||
/// 封印卸载
|
||||
/// </summary>
|
||||
public void CoverSealUninstallState()
|
||||
{
|
||||
//左封印被剪开
|
||||
cover.cover_seal_Left.isCut = true;
|
||||
cover.cover_seal_Left.gameObject.SetActive(false);
|
||||
//右封印被剪开
|
||||
cover.cover_seal_Right.isCut = true;
|
||||
cover.cover_seal_Right.gameObject.SetActive(false);
|
||||
}
|
||||
/// <summary>
|
||||
/// 接线螺丝拧上状态
|
||||
/// </summary>
|
||||
public void JieXianScrewInstallState()
|
||||
|
|
|
@ -6,6 +6,8 @@ using UnityEngine;
|
|||
public class Tool_BoxSeal : Tool_Base
|
||||
{
|
||||
private void Update()
|
||||
{
|
||||
if (Input.GetMouseButton(0))
|
||||
{
|
||||
//点击螺丝验电
|
||||
Ray tmpray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
@ -32,3 +34,4 @@ public class Tool_BoxSeal : Tool_Base
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue