塑料盖子

This commit is contained in:
liuyu 2024-09-14 13:26:11 +08:00
parent eec46fab6e
commit 978fdf25dc
4 changed files with 49 additions and 7 deletions

View File

@ -250,6 +250,21 @@
}
]
},
{
"stepDescription": "加装封印",
"score": 0,
"actions": [
{
"description": "盖上盒盖",
"score": 0,
"isUI": false,
"isSequential": false,
"targetObjects": [
"盖_透明外壳"
]
}
]
},
{
"stepDescription": "加装封印",
"score": 7,
@ -260,7 +275,6 @@
"isUI": false,
"isSequential": false,
"targetObjects": [
"盖_透明外壳",
"透明盖子封印碰撞R",
"透明盖子封印碰撞L",
"变电箱_门",

View File

@ -216,6 +216,7 @@ public class ToolManager : MonoBehaviour
Tool[4].gameObject.SetActive(true);
TooslManager.instance.currentTool = Tool[4];
RetractBtn[2].gameObject.SetActive(true);
Tool[4].transform.localScale = new Vector3(1f, 1f, 1f);//LY
}
if (message == "없鍍스던")
{

View File

@ -114,12 +114,12 @@ public class Fieldobservation : MonoBehaviour
{
if (hit.collider.gameObject.name == "盖_透明外壳")
{
await ParentOverSealAsync();
//await ParentOverSealAsync();
StartCoroutine(ParentOverSealCoro());
BOXseal[0].enabled = true;
BOXseal[1].enabled = true;
//isbox = false;
guimen.GetComponent<BoxCollider>().enabled = true;
}
@ -180,8 +180,9 @@ public class Fieldobservation : MonoBehaviour
/// <returns></returns>
public async UniTask ParentOverSealAsync()
{
Transparentover.transform.localPosition = new Vector3(0, 0, 0);
await UniTask.Delay(1000); // µÈ´ý1Ãë
await UniTask.Delay(500);
Transparentover.transform.localPosition = new Vector3(0, 0, 0);//HQB
await UniTask.Delay(500); // µÈ´ý1Ãë
screw[0].SetActive(true);
await UniTask.Delay(500); // 等待0.5秒
@ -196,6 +197,26 @@ public class Fieldobservation : MonoBehaviour
MotionEngine.GetModule<AnimationProcessManager>().HandleClick("盖_透明外壳");
}
public IEnumerator ParentOverSealCoro()
{
DOTween.Kill(Transparentover);
if (DOTween.IsTweening(Transparentover))
{
Debug.Log("Transparentover killing....");
yield return null;
}
Transparentover.transform.localPosition = new Vector3(0, 0, 0);
screw[0].SetActive(true);
yield return new WaitForSeconds(0.5f);
screw[0].transform.localPosition = new Vector3(-0.07357633f, -0.01137948f, 0.003414989f);
screw[1].SetActive(true);
yield return new WaitForSeconds(1.5f);
screw[1].transform.localPosition = new Vector3(0.07394123f, 0.013731f, 0.003414989f);
MotionEngine.GetModule<AnimationProcessManager>().HandleClick("¸Ç_͸Ã÷Íâ¿Ç");
}
/// <summary>
/// 点击柜门卡栓动画
/// </summary>

View File

@ -72,13 +72,19 @@ public class TooslManager : MonoBehaviour
tool.toolObject.transform.SetParent(PlayercameraTrans.transform);
tool.toolObject.transform.localPosition = tool.originalPosition;
tool.toolObject.transform.localRotation = tool.originalRotation;
if (tool.toolObject.transform.name == "°þÏßǯ")
if (tool.toolObject.transform.name == "°þÏßǯ")//LY
{
tool.toolObject.transform.localScale = new Vector3(0.000001f, 0.000001f, 0.000001f);//LY
tool.returnButton.gameObject.SetActive(false);
TooslManager.instance.currentTool = null;
}
else
else if (tool.toolObject.transform.name == "ÂÝË¿µ¶")//LY
{
tool.toolObject.transform.localScale = new Vector3(0.000001f, 0.000001f, 0.000001f);
tool.returnButton.gameObject.SetActive(false);
TooslManager.instance.currentTool = null;
}
else
{
tool.toolObject.SetActive(false);
}