This commit is contained in:
parent
44fa05a837
commit
398617257d
File diff suppressed because one or more lines are too long
|
@ -5,6 +5,7 @@ using System.Collections;
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using HighlightPlus;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class JunctionBox : MonoBehaviour
|
||||
{
|
||||
|
@ -99,6 +100,9 @@ public class JunctionBox : MonoBehaviour
|
|||
|
||||
void Update()
|
||||
{
|
||||
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
|
|
@ -114,12 +114,12 @@ Material:
|
|||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
- __dirty: 0
|
||||
- _step_p1: 1
|
||||
- _step_p2: 1
|
||||
- _step_p3: 1
|
||||
- _step_p4: 1
|
||||
- _step_p5: 1
|
||||
- _step_p6: 1
|
||||
- _step_p1: 0
|
||||
- _step_p2: 0
|
||||
- _step_p3: 0
|
||||
- _step_p4: 0
|
||||
- _step_p5: 0
|
||||
- _step_p6: 0
|
||||
m_Colors:
|
||||
- _BaseCol: {r: 0.23429155, g: 0.28497556, b: 0.3679245, a: 0}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
|
|
|
@ -1493,7 +1493,9 @@ PrefabInstance:
|
|||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedComponents:
|
||||
- {fileID: 362740763354511596, guid: a6c750f9e3102bc499c6f13f30606383, type: 3}
|
||||
- {fileID: 8072199593868723766, guid: a6c750f9e3102bc499c6f13f30606383, type: 3}
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects:
|
||||
- targetCorrespondingSourceObject: {fileID: 7993702416454423269, guid: a6c750f9e3102bc499c6f13f30606383, type: 3}
|
||||
|
@ -27025,7 +27027,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1463398218296508053, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "JZQ_\u87BA\u4E1D006"
|
||||
value: "JZQ_\u87BA\u4E1D6"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1570257037484163098, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: rmsCount
|
||||
|
@ -27053,7 +27055,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2192805484565187950, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "JZQ_\u87BA\u4E1D007"
|
||||
value: "JZQ_\u87BA\u4E1D7"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2204731105270039458, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
|
@ -27077,7 +27079,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2984690970638949370, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "JZQ_\u87BA\u4E1D004"
|
||||
value: "JZQ_\u87BA\u4E1D4"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3220151227488003814, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
|
@ -27113,7 +27115,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3840251966511389814, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "JZQ_\u87BA\u4E1D003"
|
||||
value: "JZQ_\u87BA\u4E1D3"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3850327559864153827, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
|
@ -27153,7 +27155,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5531721482550586917, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "JZQ_\u87BA\u4E1D003"
|
||||
value: "JZQ_\u87BA\u4E1D3"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5573879507267323690, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
|
@ -27161,7 +27163,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5661947139537085486, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "JZQ_\u87BA\u4E1D004"
|
||||
value: "JZQ_\u87BA\u4E1D4"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5721689596260097935, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Enabled
|
||||
|
@ -27205,7 +27207,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7063737413586441568, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0.352
|
||||
value: 0.238
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7063737413586441568, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
|
@ -27213,7 +27215,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7063737413586441568, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0.611
|
||||
value: 0.5288
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7063737413586441568, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
|
@ -27273,11 +27275,11 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7822740490637988732, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "JZQ_\u87BA\u4E1D001"
|
||||
value: "JZQ_\u87BA\u4E1D1"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7932304195997490769, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "JZQ_\u87BA\u4E1D002"
|
||||
value: "JZQ_\u87BA\u4E1D2"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7934513608734548840, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
|
@ -27305,7 +27307,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8859103648452553668, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "JZQ_\u87BA\u4E1D001"
|
||||
value: "JZQ_\u87BA\u4E1D1"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 9013269146914429834, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Enabled
|
||||
|
@ -27313,7 +27315,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 9135344672219898919, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "JZQ_\u87BA\u4E1D002"
|
||||
value: "JZQ_\u87BA\u4E1D2"
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents:
|
||||
- {fileID: 6106586016319151649, guid: 87ec8db29445cbe4b81cdbb1df57859f, type: 3}
|
||||
|
@ -34666,7 +34668,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 919132149155446097, guid: fe4c1814d44af964c94c33808b704426, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Man_stand
|
||||
value: "\u5BA2\u6237"
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1082271958561512970, guid: fe4c1814d44af964c94c33808b704426, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
|
@ -38400,7 +38402,7 @@ PrefabInstance:
|
|||
m_Modifications:
|
||||
- target: {fileID: -8679921383154817045, guid: 400cb0c2fa9055941bbe043d16a34353, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0.352
|
||||
value: 0.2778
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 400cb0c2fa9055941bbe043d16a34353, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
|
@ -38408,7 +38410,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 400cb0c2fa9055941bbe043d16a34353, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0.611
|
||||
value: 0.5012
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 400cb0c2fa9055941bbe043d16a34353, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
|
@ -38456,9 +38458,6 @@ PrefabInstance:
|
|||
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 400cb0c2fa9055941bbe043d16a34353, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 2018635916}
|
||||
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 400cb0c2fa9055941bbe043d16a34353, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 2018635917}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 400cb0c2fa9055941bbe043d16a34353, type: 3}
|
||||
--- !u!4 &2018635914 stripped
|
||||
Transform:
|
||||
|
@ -38497,27 +38496,6 @@ MonoBehaviour:
|
|||
sealbcl:
|
||||
- {fileID: 1601934745}
|
||||
- {fileID: 682339698}
|
||||
--- !u!65 &2018635917
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2018635915}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 0
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 0
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 0.10971069, y: 0.10256955, z: 0.09324905}
|
||||
m_Center: {x: -0.003829956, y: 0.0022774898, z: 0.044976857}
|
||||
--- !u!1 &2024319182
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -231767,7 +231745,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4743931306071556718, guid: 244b99f7130c1e04bb9ca35f14861f25, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0.352
|
||||
value: 0.275
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4743931306071556718, guid: 244b99f7130c1e04bb9ca35f14861f25, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
|
|
|
@ -4,6 +4,7 @@ using MotionFramework;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
/// <summary>
|
||||
/// ÂÝË¿µ¶
|
||||
|
@ -134,6 +135,10 @@ public class Screwdriver : MonoBehaviour
|
|||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
|
||||
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{//Camera.transform.forward
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
|
|
@ -310,8 +310,8 @@ namespace DefaultNamespace.ProcessMode
|
|||
OnCompleteEvent?.Invoke(CalculateTotalScore());
|
||||
}
|
||||
|
||||
|
||||
Debug.Log("全部完成了!!!!");
|
||||
OnTeachingPromptsObjects(null);
|
||||
Debug.Log("所有得步骤都已经完成了!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ using MotionFramework;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.UI;
|
||||
|
||||
/// <summary>
|
||||
|
@ -85,6 +86,10 @@ public class Seal : MonoBehaviour
|
|||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
namespace UnityStandardAssets.Utility
|
||||
{
|
||||
|
@ -28,6 +29,8 @@ namespace UnityStandardAssets.Utility
|
|||
// Update is called once per frame
|
||||
private void Update()
|
||||
{
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
Ray ray = new Ray(Camera.main.transform.position, -Vector3.up);
|
||||
RaycastHit hit;
|
||||
float height = transform.position.y;
|
||||
|
|
|
@ -77,10 +77,10 @@
|
|||
{
|
||||
"description": "前往",
|
||||
"score": 0,
|
||||
"isUI": true,
|
||||
"isUI": false,
|
||||
"isSequential": true,
|
||||
"targetObjects": [
|
||||
"Man_stand"
|
||||
"客户"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -268,12 +268,12 @@
|
|||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"JZQ_螺丝001",
|
||||
"JZQ_螺丝002",
|
||||
"JZQ_螺丝003",
|
||||
"JZQ_螺丝004",
|
||||
"JZQ_螺丝007",
|
||||
"JZQ_螺丝006"
|
||||
"JZQ_螺丝1",
|
||||
"JZQ_螺丝2",
|
||||
"JZQ_螺丝3",
|
||||
"JZQ_螺丝4",
|
||||
"JZQ_螺丝6",
|
||||
"JZQ_螺丝7"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -303,8 +303,7 @@
|
|||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"透明盖子封印碰撞R",
|
||||
"透明盖子封印碰撞L"
|
||||
"盖_透明外壳"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -319,7 +318,8 @@
|
|||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"盖_透明外壳"
|
||||
"透明盖子封印碰撞R",
|
||||
"透明盖子封印碰撞L"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -77,10 +77,10 @@
|
|||
{
|
||||
"description": "前往",
|
||||
"score": 0,
|
||||
"isUI": true,
|
||||
"isUI": false,
|
||||
"isSequential": true,
|
||||
"targetObjects": [
|
||||
"Man_stand"
|
||||
"客户"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
"steps": [
|
||||
{
|
||||
"stepDescription": "填写工作票",
|
||||
"score": 11,
|
||||
"score": 10,
|
||||
"actions": [
|
||||
{
|
||||
"description": "填写工作票",
|
||||
"score": 11,
|
||||
"description": "选择",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": true,
|
||||
"targetObjects": [
|
||||
"工作单"
|
||||
|
@ -16,14 +17,339 @@
|
|||
},
|
||||
{
|
||||
"stepDescription": "领取工器具及仪器设备",
|
||||
"score": 22,
|
||||
"score": 20,
|
||||
"actions": [
|
||||
{
|
||||
"description": "领取工器具及仪器设备",
|
||||
"score": 22,
|
||||
"description": "领取",
|
||||
"score": 30,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"螺丝刀"
|
||||
"螺丝刀",
|
||||
"剥线钳",
|
||||
"绝缘胶带",
|
||||
"验电笔",
|
||||
"盒装封印",
|
||||
"安全帽",
|
||||
"纱布手套",
|
||||
"工作服",
|
||||
"l型集中器",
|
||||
"梯子",
|
||||
"工作证"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "佩戴装备检视",
|
||||
"score": 5,
|
||||
"actions": [
|
||||
{
|
||||
"description": "佩戴装备前往",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"梳妆镜"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "前往现场",
|
||||
"score": 5,
|
||||
"actions": [
|
||||
{
|
||||
"description": "点击按钮 ",
|
||||
"score": 0,
|
||||
"isUI": true,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"前往现场"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "前往现场",
|
||||
"score": 5,
|
||||
"actions": [
|
||||
{
|
||||
"description": "前往",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": true,
|
||||
"targetObjects": [
|
||||
"客户"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "验电",
|
||||
"score": 10,
|
||||
"actions": [
|
||||
{
|
||||
"description": "验电笔验电",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": true,
|
||||
"targetObjects": [
|
||||
"插座",
|
||||
"箱体",
|
||||
"插座"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "柜门封印",
|
||||
"score": 3.11,
|
||||
"actions": [
|
||||
{
|
||||
"description": "剥线钳打开",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": true,
|
||||
"targetObjects": [
|
||||
"柜门_封印"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "更换集中器",
|
||||
"score": 3.11,
|
||||
"actions": [
|
||||
{
|
||||
"description": "剥线钳更换",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"接线盒_封印R",
|
||||
"接线盒_封印L"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "更换集中器",
|
||||
"score": 3.11,
|
||||
"actions": [
|
||||
{
|
||||
"description": "螺丝刀扭开",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"盖_固定螺丝_Rup",
|
||||
"固定螺丝_Ldown"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "更换集中器",
|
||||
"score": 3.11,
|
||||
"actions": [
|
||||
{
|
||||
"description": "滑动",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": true,
|
||||
"targetObjects": [
|
||||
"接线盒纵向滑块004",
|
||||
"接线盒横向上滑块003",
|
||||
"接线盒纵向滑块003",
|
||||
"接线盒横向上滑块001",
|
||||
"接线盒纵向滑块002",
|
||||
"接线盒横向上滑块002",
|
||||
"接线盒纵向滑块001"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "更换集中器",
|
||||
"score": 3.11,
|
||||
"actions": [
|
||||
{
|
||||
"description": "螺丝刀扭开",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"集中器_封印R",
|
||||
"集中器_封印_L",
|
||||
"壳固定螺丝_R",
|
||||
"壳固定螺丝_L"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "更换集中器",
|
||||
"score": 3.11,
|
||||
"actions": [
|
||||
{
|
||||
"description": "螺丝刀扭开",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"JZQ_螺丝001",
|
||||
"JZQ_螺丝0011",
|
||||
"JZQ_螺丝002",
|
||||
"JZQ_螺丝0022",
|
||||
"JZQ_螺丝003",
|
||||
"JZQ_螺丝0033",
|
||||
"JZQ_螺丝004",
|
||||
"JZQ_螺丝0044",
|
||||
"JZQ_螺丝006",
|
||||
"JZQ_螺丝005"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "更换集中器",
|
||||
"score": 3.11,
|
||||
"actions": [
|
||||
{
|
||||
"description": "绝缘胶带绑",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": true,
|
||||
"targetObjects": [
|
||||
"pCylinder170"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "更换集中器",
|
||||
"score": 3.11,
|
||||
"actions": [
|
||||
{
|
||||
"description": "螺丝刀扭开",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"固定螺丝_Rdown",
|
||||
"集电器固定螺丝_Ldown"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "更换集中器",
|
||||
"score": 3.11,
|
||||
"actions": [
|
||||
{
|
||||
"description": "更换",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"新的集中器碰撞"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "更换集中器",
|
||||
"score": 3.12,
|
||||
"actions": [
|
||||
{
|
||||
"description": "螺丝刀上",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"JZQ_螺丝1",
|
||||
"JZQ_螺丝2",
|
||||
"JZQ_螺丝3",
|
||||
"JZQ_螺丝4",
|
||||
"JZQ_螺丝6",
|
||||
"JZQ_螺丝7"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "临时用电",
|
||||
"score": 5,
|
||||
"actions": [
|
||||
{
|
||||
"description": "打开",
|
||||
"score": 0,
|
||||
"isUI": true,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"临时用电"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "加装封印",
|
||||
"score": 1.4,
|
||||
"actions": [
|
||||
{
|
||||
"description": "加装封印",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"盖_透明外壳"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "加装封印",
|
||||
"score": 1.4,
|
||||
"actions": [
|
||||
{
|
||||
"description": "加装封印",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"透明盖子封印碰撞R",
|
||||
"透明盖子封印碰撞L"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "加装封印",
|
||||
"score": 1.4,
|
||||
"actions": [
|
||||
{
|
||||
"description": "加装封印",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"变电箱_门"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stepDescription": "加装封印",
|
||||
"score": 1.4,
|
||||
"actions": [
|
||||
{
|
||||
"description": "加装封印",
|
||||
"score": 0,
|
||||
"isUI": false,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"柜门卡栓"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -4,6 +4,7 @@ using MotionFramework;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
/// <summary>
|
||||
/// ¼¯ÖÐÆ÷
|
||||
|
@ -84,6 +85,10 @@ public class concentrator : MonoBehaviour
|
|||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
@ -104,33 +109,45 @@ public class concentrator : MonoBehaviour
|
|||
}
|
||||
|
||||
|
||||
if (hit.collider.gameObject.name == "JZQ_ÂÝË¿001")
|
||||
if (hit.collider.gameObject.name == "JZQ_ÂÝË¿1")
|
||||
{
|
||||
StartCoroutine(TapeBackFrist());
|
||||
ScrewObj[0].GetComponent<MeshRenderer>().enabled = true;
|
||||
ScrewObj[1].GetComponent<MeshRenderer>().enabled = true;MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
ScrewObj[1].GetComponent<MeshRenderer>().enabled = true;
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
else if (hit.collider.gameObject.name == "JZQ_ÂÝË¿002")
|
||||
else if (hit.collider.gameObject.name == "JZQ_ÂÝË¿2")
|
||||
{
|
||||
StartCoroutine(TapeBackSecond());
|
||||
ScrewObj[2].GetComponent<MeshRenderer>().enabled = true;
|
||||
ScrewObj[3].GetComponent<MeshRenderer>().enabled = true;MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
ScrewObj[3].GetComponent<MeshRenderer>().enabled = true;
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
else if (hit.collider.gameObject.name == "JZQ_ÂÝË¿003")
|
||||
else if (hit.collider.gameObject.name == "JZQ_ÂÝË¿3")
|
||||
{
|
||||
StartCoroutine(TapeBackThird());
|
||||
ScrewObj[4].GetComponent<MeshRenderer>().enabled = true;
|
||||
ScrewObj[5].GetComponent<MeshRenderer>().enabled = true;MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
ScrewObj[5].GetComponent<MeshRenderer>().enabled = true;
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
else if (hit.collider.gameObject.name == "JZQ_ÂÝË¿004")
|
||||
else if (hit.collider.gameObject.name == "JZQ_ÂÝË¿4")
|
||||
{
|
||||
StartCoroutine(TapeBackFourth());
|
||||
ScrewObj[6].GetComponent<MeshRenderer>().enabled = true;
|
||||
ScrewObj[7].GetComponent<MeshRenderer>().enabled = true;MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
ScrewObj[7].GetComponent<MeshRenderer>().enabled = true;
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
else if (hit.collider.gameObject.name == "JZQ_ÂÝË¿006")
|
||||
else if (hit.collider.gameObject.name == "JZQ_ÂÝË¿6")
|
||||
{
|
||||
ScrewObj[8].GetComponent<MeshRenderer>().enabled = true;MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
StartCoroutine(TapeBackFifth());
|
||||
ScrewObj[8].GetComponent<MeshRenderer>().enabled = true;
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
else if (hit.collider.gameObject.name == "JZQ_ÂÝË¿007")
|
||||
else if (hit.collider.gameObject.name == "JZQ_ÂÝË¿7")
|
||||
{
|
||||
ScrewObj[9].GetComponent<MeshRenderer>().enabled = true;MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
StartCoroutine(TapeBackSixth());
|
||||
ScrewObj[9].GetComponent<MeshRenderer>().enabled = true;
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
|
||||
// for (int i = 0; i < ScrewObj.Length; i++)
|
||||
|
@ -170,14 +187,14 @@ public class concentrator : MonoBehaviour
|
|||
{
|
||||
isPlayAni = false;
|
||||
//StartCoroutine(IEElectricWire());
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
//MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
// Debug.Log("ËùÓÐÂÝË¿¶¼ÏÔʾ");
|
||||
}
|
||||
|
||||
if (hit.collider.gameObject.name == "JZQ_ÂÝË¿007")
|
||||
{
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
// if (hit.collider.gameObject.name == "JZQ_ÂÝË¿007")
|
||||
// {
|
||||
// MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
// }
|
||||
|
||||
|
||||
//if (hit.collider.gameObject.name == "pCylinder170")
|
||||
|
|
|
@ -4,6 +4,7 @@ using MotionFramework;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
/// <summary>
|
||||
/// 없鍍스던
|
||||
|
@ -73,6 +74,10 @@ using UnityEngine;
|
|||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
|
||||
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{//Camera.transform.forward
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
|
|
@ -4,6 +4,7 @@ using MotionFramework;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
/// <summary>
|
||||
/// 剥线钳
|
||||
|
@ -74,7 +75,7 @@ public class Pliers : MonoBehaviour
|
|||
/// <summary>
|
||||
/// 是否在梯子上
|
||||
/// </summary>
|
||||
bool Onladder ;
|
||||
bool Onladder;
|
||||
|
||||
[Header("斜口钳钳开每个封印位置")]
|
||||
/// <summary>
|
||||
|
@ -93,7 +94,8 @@ public class Pliers : MonoBehaviour
|
|||
/// <summary>
|
||||
/// 斜口钳的原始旋转
|
||||
/// </summary>
|
||||
private Quaternion originalRotation;
|
||||
private Quaternion originalRotation;
|
||||
|
||||
void Start()
|
||||
{
|
||||
Init();
|
||||
|
@ -115,6 +117,9 @@ public class Pliers : MonoBehaviour
|
|||
//判断在梯子上
|
||||
if (!Onladder)
|
||||
{
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
@ -129,6 +134,7 @@ public class Pliers : MonoBehaviour
|
|||
Debug.Log(hit.collider.gameObject.name);
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
|
||||
if (hit.collider.gameObject.name == "接线盒_封印R")
|
||||
{
|
||||
PliersObj.gameObject.transform.SetParent(null);
|
||||
|
@ -136,6 +142,7 @@ public class Pliers : MonoBehaviour
|
|||
Debug.Log(hit.collider.gameObject.name);
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
|
||||
if (hit.collider.gameObject.name == "接线盒_封印L")
|
||||
{
|
||||
PliersObj.gameObject.transform.SetParent(null);
|
||||
|
@ -143,6 +150,7 @@ public class Pliers : MonoBehaviour
|
|||
Debug.Log(hit.collider.gameObject.name);
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
|
||||
if (hit.collider.gameObject.name == "集中器_封印R")
|
||||
{
|
||||
PliersObj.gameObject.transform.SetParent(null);
|
||||
|
@ -150,6 +158,7 @@ public class Pliers : MonoBehaviour
|
|||
Debug.Log(hit.collider.gameObject.name);
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
|
||||
if (hit.collider.gameObject.name == "集中器_封印_L")
|
||||
{
|
||||
PliersObj.gameObject.transform.SetParent(null);
|
||||
|
@ -180,6 +189,7 @@ public class Pliers : MonoBehaviour
|
|||
yield return new WaitForSeconds(0.001f);
|
||||
PliersSki.SetBlendShapeWeight(0, i);
|
||||
}
|
||||
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
//PliersObj.gameObject.transform.SetParent(PlayerCamera.transform);
|
||||
StartCoroutine(OpenLock());
|
||||
|
@ -196,6 +206,7 @@ public class Pliers : MonoBehaviour
|
|||
yield return new WaitForSeconds(0.001f);
|
||||
ElectricBoxSkinnedMeshRenderer.SetBlendShapeWeight(0, i);
|
||||
}
|
||||
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
ElectricBoxSkinnedMeshRenderer.gameObject.transform.DOLocalMove(new Vector3(0.637f, 0.12f, -0.015f), 0.5f);
|
||||
yield return new WaitForSeconds(1f);
|
||||
|
@ -247,22 +258,24 @@ public class Pliers : MonoBehaviour
|
|||
//yield return new WaitForSeconds(1f);
|
||||
//PliersObj.gameObject.transform.DOLocalMove(new Vector3(3.1497f, 1.888f, -1.3079f), 0.5f);
|
||||
yield return new WaitForSeconds(1f);
|
||||
for (int i = 25; i >= 0; i--)//更改斜口钳开口速度改i的值,越小越快
|
||||
for (int i = 25; i >= 0; i--) //更改斜口钳开口速度改i的值,越小越快
|
||||
{
|
||||
yield return new WaitForSeconds(0.001f);
|
||||
PliersSki.SetBlendShapeWeight(0, i);
|
||||
}
|
||||
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
yield return new WaitForSeconds(0.001f);
|
||||
RightSkinnedMeshRenderer.SetBlendShapeWeight(0, i);
|
||||
}
|
||||
|
||||
RightSkinnedMeshRenderer.gameObject.transform.DOLocalMove(new Vector3(0.0746f, 0.0004f, -0.0416f), 0.5f);
|
||||
yield return new WaitForSeconds(1.5f);
|
||||
StartCoroutine(PliersBack());
|
||||
RightSkinnedMeshRenderer.gameObject.SetActive(false);
|
||||
// Destroy(RightSkinnedMeshRenderer);
|
||||
// Destroy(RightSkinnedMeshRenderer);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -271,7 +284,7 @@ public class Pliers : MonoBehaviour
|
|||
/// <returns></returns>
|
||||
IEnumerator JunctionBoxLeft()
|
||||
{
|
||||
// PliersObj.gameObject.transform.position = InteractivePliersTrans[2].gameObject.transform.position;
|
||||
// PliersObj.gameObject.transform.position = InteractivePliersTrans[2].gameObject.transform.position;
|
||||
PliersObj.gameObject.transform.SetPositionAndRotation(InteractivePliersTrans[2].gameObject.transform.position, InteractivePliersTrans[2].gameObject.transform.rotation);
|
||||
//PliersObj.gameObject.transform.DOLocalRotate(new Vector3(-90, 90, 0), 0.5f);
|
||||
//yield return new WaitForSeconds(0.8f);
|
||||
|
@ -282,12 +295,14 @@ public class Pliers : MonoBehaviour
|
|||
yield return new WaitForSeconds(0.001f);
|
||||
PliersSki.SetBlendShapeWeight(0, i);
|
||||
}
|
||||
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
yield return new WaitForSeconds(0.001f);
|
||||
LeftSkinnedMeshRenderer.SetBlendShapeWeight(0, i);
|
||||
}
|
||||
|
||||
LeftSkinnedMeshRenderer.gameObject.transform.DOLocalMove(new Vector3(-0.0744f, -0.0247f, -0.043f), 0.5f);
|
||||
yield return new WaitForSeconds(1f);
|
||||
StartCoroutine(PliersBack());
|
||||
|
@ -313,12 +328,14 @@ public class Pliers : MonoBehaviour
|
|||
yield return new WaitForSeconds(0.001f);
|
||||
PliersSki.SetBlendShapeWeight(0, i);
|
||||
}
|
||||
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
yield return new WaitForSeconds(0.001f);
|
||||
RconcentratorSMR.SetBlendShapeWeight(0, i);
|
||||
}
|
||||
|
||||
RconcentratorSMR.gameObject.transform.DOLocalMove(new Vector3(0.1151f, 0.0243f, -0.1134f), 0.5f);
|
||||
yield return new WaitForSeconds(1f);
|
||||
StartCoroutine(PliersBack());
|
||||
|
@ -342,15 +359,17 @@ public class Pliers : MonoBehaviour
|
|||
yield return new WaitForSeconds(0.001f);
|
||||
PliersSki.SetBlendShapeWeight(0, i);
|
||||
}
|
||||
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
yield return new WaitForSeconds(0.001f);
|
||||
LconcentratorSMR.SetBlendShapeWeight(0, i);
|
||||
}
|
||||
|
||||
LconcentratorSMR.gameObject.transform.DOLocalMove(new Vector3(-0.0659f, 0.0829f, -0.1134f), 0.5f);
|
||||
yield return new WaitForSeconds(1f);
|
||||
StartCoroutine(PliersBack());
|
||||
LconcentratorSMR.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,6 +7,7 @@ using DefaultNamespace.ProcessMode;
|
|||
using MotionFramework;
|
||||
using UnityEngine;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
/// <summary>
|
||||
/// Ñéµç±Ê
|
||||
|
@ -50,6 +51,10 @@ public class ElectricCheckPen : MonoBehaviour
|
|||
/// </summary>
|
||||
void Update()
|
||||
{
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
|
||||
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{//Camera.transform.forward
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
using DG.Tweening;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using DefaultNamespace.ProcessMode;
|
||||
using MotionFramework;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using HighlightPlus;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class Fieldobservation : MonoBehaviour
|
||||
{
|
||||
|
@ -99,6 +101,10 @@ public class Fieldobservation : MonoBehaviour
|
|||
|
||||
void Update()
|
||||
{
|
||||
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
@ -108,11 +114,11 @@ public class Fieldobservation : MonoBehaviour
|
|||
{
|
||||
if (hit.collider.gameObject.name == "盖_透明外壳")
|
||||
{
|
||||
StartCoroutine(IEparentoverSeal());
|
||||
ParentOverSealAsync();
|
||||
BOXseal[0].enabled = true;
|
||||
BOXseal[1].enabled = true;
|
||||
//isbox = false;
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
|
||||
|
||||
guimen.GetComponent<BoxCollider>().enabled = true;
|
||||
|
||||
|
@ -172,17 +178,22 @@ public class Fieldobservation : MonoBehaviour
|
|||
/// 透明外盖上的封印动画
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IEnumerator IEparentoverSeal()
|
||||
public async UniTask ParentOverSealAsync()
|
||||
{
|
||||
Transparentover.transform.localPosition = new Vector3(0, 0, 0);
|
||||
yield return new WaitForSeconds(1f);
|
||||
screw[0].gameObject.SetActive(true);
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
screw[0].transform.localPosition = new Vector3(-0.07357633f, -0.01137948f, 0.003414989f);
|
||||
screw[1].gameObject.SetActive(true);
|
||||
yield return new WaitForSeconds(1.5f);
|
||||
screw[1].transform.localPosition = new Vector3(0.07394123f, 0.013731f, 0.003414989f);
|
||||
await UniTask.Delay(1000); // µÈ´ý1Ãë
|
||||
|
||||
screw[0].SetActive(true);
|
||||
await UniTask.Delay(500); // µÈ´ý0.5Ãë
|
||||
|
||||
screw[0].transform.localPosition = new Vector3(-0.07357633f, -0.01137948f, 0.003414989f);
|
||||
screw[1].SetActive(true);
|
||||
await UniTask.Delay(1500); // µÈ´ý1.5Ãë
|
||||
|
||||
screw[1].transform.localPosition = new Vector3(0.07394123f, 0.013731f, 0.003414989f);
|
||||
|
||||
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick("¸Ç_͸Ã÷Íâ¿Ç");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -4,6 +4,7 @@ using System.Collections;
|
|||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
/// <summary>
|
||||
/// 柑깃듐샌棍꼬邏으쳔뵨코꼬邏으쳔역
|
||||
|
@ -31,6 +32,8 @@ public class RotationOfDoor : MonoBehaviour
|
|||
|
||||
private void Update()
|
||||
{
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
@ -42,6 +45,7 @@ public class RotationOfDoor : MonoBehaviour
|
|||
{
|
||||
hit.collider.gameObject.transform.DORotate(new Vector3(0, 0, 0), 3f);
|
||||
}
|
||||
|
||||
if (hit.collider.gameObject.name == "토든芎鍋으_쳔")
|
||||
{
|
||||
hit.collider.gameObject.transform.DORotate(new Vector3(0, 35, 0), 2f);
|
||||
|
@ -50,21 +54,24 @@ public class RotationOfDoor : MonoBehaviour
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.name == "GatedoorclosingColider")
|
||||
{
|
||||
Outerdoor.gameObject.transform.DORotate(new Vector3(0, 90, 0), 3f);
|
||||
}
|
||||
|
||||
if (other.name == "AutomaticdoorclosingColider")
|
||||
{
|
||||
Inneredoor.gameObject.transform.DOLocalRotate(new Vector3(0, -90, 0), 2f);
|
||||
AutomaticdoorclosingColider.GetComponent<BoxCollider>().enabled = false;
|
||||
}
|
||||
|
||||
if (other.name == "OutsidethedoorColider")
|
||||
{
|
||||
Inneredoor.gameObject.transform.DOLocalRotate(new Vector3(0, -90, 0), 2f);
|
||||
AutomaticdoorclosingColider.GetComponent<BoxCollider>().enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using ToolsPack;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
namespace Views
|
||||
{
|
||||
|
@ -48,6 +49,9 @@ namespace Views
|
|||
|
||||
public void Update()
|
||||
{
|
||||
if (EventSystem.current.IsPointerOverGameObject())
|
||||
return;
|
||||
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
|
|
@ -51,7 +51,7 @@ public class WorkPermit : MonoBehaviour
|
|||
Dialogbox.gameObject.SetActive(false);
|
||||
DialogboxText.text = null;
|
||||
Destroy(WorkPermitObj);
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick("Man_stand");
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick("客户");
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue