json修改提交
This commit is contained in:
parent
23c9956b7d
commit
9f3153ee9d
|
|
@ -7429,6 +7429,14 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
ConcentratorObj: {fileID: 274807175}
|
||||
ElectricWireSMR: {fileID: 886368899}
|
||||
TapeMarCol: {fileID: 886368898}
|
||||
TapeMar: {fileID: 2100000, guid: ddf175dcba94e8d46bc6b6d68d61c395, type: 2}
|
||||
Cover: {fileID: 274807158}
|
||||
oncentratorTrans: {fileID: 528088251}
|
||||
screw:
|
||||
- {fileID: 274807157}
|
||||
- {fileID: 274807156}
|
||||
ScrewObj:
|
||||
- {fileID: 274807171}
|
||||
- {fileID: 274807170}
|
||||
|
|
@ -7440,14 +7448,6 @@ MonoBehaviour:
|
|||
- {fileID: 274807164}
|
||||
- {fileID: 274807161}
|
||||
- {fileID: 274807160}
|
||||
ElectricWireSMR: {fileID: 886368899}
|
||||
TapeMarCol: {fileID: 886368898}
|
||||
TapeMar: {fileID: 2100000, guid: ddf175dcba94e8d46bc6b6d68d61c395, type: 2}
|
||||
Cover: {fileID: 274807158}
|
||||
screw:
|
||||
- {fileID: 274807157}
|
||||
- {fileID: 274807156}
|
||||
oncentratorTrans: {fileID: 528088251}
|
||||
--- !u!1 &277098938
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -11596,8 +11596,8 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
ElectricCheckPenOBJ: {fileID: 542005244}
|
||||
ElectricCheckPenMater: {fileID: 2100000, guid: a09bcf13701d86049ac4e1219d051234, type: 2}
|
||||
ElectricalInspectionOfficeTrans: {fileID: 107762421}
|
||||
ElectricCheckPenMater: {fileID: 2100000, guid: a09bcf13701d86049ac4e1219d051234, type: 2}
|
||||
useColorOn: 1
|
||||
--- !u!114 &552801122
|
||||
MonoBehaviour:
|
||||
|
|
@ -13796,21 +13796,20 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 17d504e1c391fac4792b98af1135ad00, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Cameraobj: {fileID: 616989522}
|
||||
ExclamationPointBtn: {fileID: 1154671473}
|
||||
Cameraobj: {fileID: 616989522}
|
||||
UptheladderPos: {fileID: 624250339}
|
||||
Transparentover: {fileID: 1946036048}
|
||||
screw:
|
||||
- {fileID: 362067760}
|
||||
- {fileID: 362067767}
|
||||
BOXseal:
|
||||
- {fileID: 1946036050}
|
||||
- {fileID: 1946036049}
|
||||
guimenkashuan: {fileID: 1273617170}
|
||||
guimen: {fileID: 1273617172}
|
||||
mensuo01: {fileID: 1273617171}
|
||||
guimenbox: {fileID: 1273617173}
|
||||
fengy: {fileID: 1946036051}
|
||||
BOXseal:
|
||||
- {fileID: 1946036050}
|
||||
- {fileID: 1946036049}
|
||||
screw:
|
||||
- {fileID: 362067760}
|
||||
- {fileID: 362067767}
|
||||
isPlayerOnLadder: 0
|
||||
--- !u!4 &616989522
|
||||
Transform:
|
||||
|
|
@ -31106,20 +31105,20 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
SealObj: {fileID: 1498050634}
|
||||
EndOfProcessImage: {fileID: 311586025}
|
||||
DoorLatch: {fileID: 1273617172}
|
||||
guimenbox: {fileID: 1273617173}
|
||||
guimenkashuan: {fileID: 1273617170}
|
||||
NewFengy: {fileID: 1489253522}
|
||||
parentoverSeal:
|
||||
- {fileID: 1932535631}
|
||||
- {fileID: 1759107963}
|
||||
Sealcol:
|
||||
- {fileID: 274807173}
|
||||
- {fileID: 274807172}
|
||||
sealbcl:
|
||||
- {fileID: 599369151}
|
||||
- {fileID: 662253428}
|
||||
EndOfProcessImage: {fileID: 311586025}
|
||||
DoorLatch: {fileID: 1273617172}
|
||||
guimenbox: {fileID: 1273617173}
|
||||
parentoverSeal:
|
||||
- {fileID: 1932535631}
|
||||
- {fileID: 1759107963}
|
||||
guimenkashuan: {fileID: 1273617170}
|
||||
fengy: {fileID: 1489253522}
|
||||
--- !u!1 &1501822397
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -38299,11 +38298,6 @@ BoxCollider:
|
|||
m_CorrespondingSourceObject: {fileID: 6950902267587906511, guid: 8a244cdd2f00e534aadd2512c3bbfda1, type: 3}
|
||||
m_PrefabInstance: {fileID: 362067757}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1946036051 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 8810976127009250453, guid: 8a244cdd2f00e534aadd2512c3bbfda1, type: 3}
|
||||
m_PrefabInstance: {fileID: 362067757}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1949062803
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
|
|
@ -20746,11 +20746,6 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1137393215}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1143738318 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 8810976127009250453, guid: 8a244cdd2f00e534aadd2512c3bbfda1, type: 3}
|
||||
m_PrefabInstance: {fileID: 601364440}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1146142253
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -30449,8 +30444,8 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
ElectricCheckPenOBJ: {fileID: 1641925554}
|
||||
ElectricCheckPenMater: {fileID: 2100000, guid: a09bcf13701d86049ac4e1219d051234, type: 2}
|
||||
ElectricalInspectionOfficeTrans: {fileID: 707065182}
|
||||
ElectricCheckPenMater: {fileID: 2100000, guid: a09bcf13701d86049ac4e1219d051234, type: 2}
|
||||
useColorOn: 1
|
||||
--- !u!1 &1642999859
|
||||
GameObject:
|
||||
|
|
@ -35577,6 +35572,14 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
ConcentratorObj: {fileID: 1485260145}
|
||||
ElectricWireSMR: {fileID: 1061297896}
|
||||
TapeMarCol: {fileID: 1061297897}
|
||||
TapeMar: {fileID: 2100000, guid: ddf175dcba94e8d46bc6b6d68d61c395, type: 2}
|
||||
Cover: {fileID: 1755457971}
|
||||
oncentratorTrans: {fileID: 1268051676}
|
||||
screw:
|
||||
- {fileID: 402936984}
|
||||
- {fileID: 2058113440}
|
||||
ScrewObj:
|
||||
- {fileID: 1485260157}
|
||||
- {fileID: 1485260156}
|
||||
|
|
@ -35588,14 +35591,6 @@ MonoBehaviour:
|
|||
- {fileID: 1485260150}
|
||||
- {fileID: 1485260147}
|
||||
- {fileID: 1485260146}
|
||||
ElectricWireSMR: {fileID: 1061297896}
|
||||
TapeMarCol: {fileID: 1061297897}
|
||||
TapeMar: {fileID: 2100000, guid: ddf175dcba94e8d46bc6b6d68d61c395, type: 2}
|
||||
Cover: {fileID: 1755457971}
|
||||
screw:
|
||||
- {fileID: 402936984}
|
||||
- {fileID: 2058113440}
|
||||
oncentratorTrans: {fileID: 1268051676}
|
||||
--- !u!1 &1904368290
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -37798,20 +37793,20 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
SealObj: {fileID: 2018635915}
|
||||
EndOfProcessImage: {fileID: 1393670469}
|
||||
DoorLatch: {fileID: 708227703}
|
||||
guimenbox: {fileID: 601364442}
|
||||
guimenkashuan: {fileID: 601364444}
|
||||
NewFengy: {fileID: 420255419}
|
||||
parentoverSeal:
|
||||
- {fileID: 446965974}
|
||||
- {fileID: 2008679881}
|
||||
Sealcol:
|
||||
- {fileID: 691769116}
|
||||
- {fileID: 691769115}
|
||||
sealbcl:
|
||||
- {fileID: 1601934745}
|
||||
- {fileID: 682339698}
|
||||
EndOfProcessImage: {fileID: 1393670469}
|
||||
DoorLatch: {fileID: 708227703}
|
||||
guimenbox: {fileID: 601364442}
|
||||
parentoverSeal:
|
||||
- {fileID: 446965974}
|
||||
- {fileID: 2008679881}
|
||||
guimenkashuan: {fileID: 601364444}
|
||||
fengy: {fileID: 420255419}
|
||||
--- !u!65 &2018635917
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -231839,21 +231834,20 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 17d504e1c391fac4792b98af1135ad00, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Cameraobj: {fileID: 6121626523908351175}
|
||||
ExclamationPointBtn: {fileID: 1323160595}
|
||||
Cameraobj: {fileID: 6121626523908351175}
|
||||
UptheladderPos: {fileID: 1987581050}
|
||||
Transparentover: {fileID: 799716865}
|
||||
screw:
|
||||
- {fileID: 274585737}
|
||||
- {fileID: 1799387239}
|
||||
BOXseal:
|
||||
- {fileID: 1392108184}
|
||||
- {fileID: 1130307471}
|
||||
guimenkashuan: {fileID: 601364444}
|
||||
guimen: {fileID: 708227703}
|
||||
mensuo01: {fileID: 601364445}
|
||||
guimenbox: {fileID: 522830941}
|
||||
fengy: {fileID: 1143738318}
|
||||
BOXseal:
|
||||
- {fileID: 1392108184}
|
||||
- {fileID: 1130307471}
|
||||
screw:
|
||||
- {fileID: 274585737}
|
||||
- {fileID: 1799387239}
|
||||
isPlayerOnLadder: 0
|
||||
--- !u!114 &6121626523908351181
|
||||
MonoBehaviour:
|
||||
|
|
|
|||
|
|
@ -11,21 +11,16 @@ using UnityEngine.UI;
|
|||
|
||||
public class Seal : MonoBehaviour
|
||||
{
|
||||
[Header("盒装封印")]
|
||||
/// <summary>
|
||||
/// 盒装封印
|
||||
/// </summary>
|
||||
public GameObject SealObj;
|
||||
|
||||
[Header("流程结束image")]
|
||||
/// <summary>
|
||||
/// 新集中器上封印
|
||||
/// 流程结束image
|
||||
/// </summary>
|
||||
public GameObject[] Sealcol;
|
||||
|
||||
/// <summary>
|
||||
/// 集线器封印上box碰撞体
|
||||
/// </summary>
|
||||
public BoxCollider[] sealbcl;
|
||||
|
||||
public Image EndOfProcessImage;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -33,29 +28,49 @@ public class Seal : MonoBehaviour
|
|||
/// </summary>
|
||||
// public BoxCollider SparentoverCol;
|
||||
|
||||
[Header("左边柜门")]
|
||||
/// <summary>
|
||||
/// 左边柜门
|
||||
/// </summary>
|
||||
public GameObject DoorLatch;
|
||||
|
||||
[Header("柜门box碰撞")]
|
||||
/// <summary>
|
||||
/// 柜门box碰撞
|
||||
/// </summary>
|
||||
public BoxCollider guimenbox;
|
||||
|
||||
/// <summary>
|
||||
/// 透明盖子上的封印
|
||||
/// </summary>
|
||||
public GameObject[] parentoverSeal;
|
||||
|
||||
[Header("柜门卡栓碰撞")]
|
||||
/// <summary>
|
||||
/// 柜门卡栓碰撞
|
||||
/// </summary>
|
||||
public BoxCollider guimenkashuan;
|
||||
|
||||
public GameObject fengy;
|
||||
[Header("柜门上的新封印")]
|
||||
/// <summary>
|
||||
/// 柜门上的新封印
|
||||
/// </summary>
|
||||
public GameObject NewFengy;
|
||||
|
||||
[Header("透明盖子上的封印")]
|
||||
/// <summary>
|
||||
/// 透明盖子上的封印
|
||||
/// </summary>
|
||||
public GameObject[] parentoverSeal;
|
||||
|
||||
[Header("新集中器上封印")]
|
||||
/// <summary>
|
||||
/// 新集中器上封印
|
||||
/// </summary>
|
||||
public GameObject[] Sealcol;
|
||||
|
||||
[Header("集线器封印上box碰撞体")]
|
||||
/// <summary>
|
||||
/// 集线器封印上box碰撞体
|
||||
/// </summary>
|
||||
public BoxCollider[] sealbcl;
|
||||
|
||||
[Header("判断封印盒子是否在手上")]
|
||||
/// <summary>
|
||||
/// 判断封印盒子是否在手上
|
||||
/// </summary>
|
||||
|
|
@ -113,7 +128,7 @@ public class Seal : MonoBehaviour
|
|||
}
|
||||
if (hit.collider.gameObject.name == "柜门卡栓")
|
||||
{
|
||||
fengy.gameObject.SetActive(true);
|
||||
NewFengy.gameObject.SetActive(true);
|
||||
//fengy.transform.localPosition = new Vector3(0.6371536f, 0.02661133f, -0.01525164f);
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -191,8 +191,8 @@
|
|||
"JZQ_螺丝0033",
|
||||
"JZQ_螺丝004",
|
||||
"JZQ_螺丝0044",
|
||||
"JZQ_螺丝005",
|
||||
"JZQ_螺丝006"
|
||||
"JZQ_螺丝006",
|
||||
"JZQ_螺丝007"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -313,6 +313,14 @@
|
|||
]
|
||||
},
|
||||
|
||||
{
|
||||
"description": "加装封印",
|
||||
"score": 0,
|
||||
"isSequential": false,
|
||||
"targetObjects": [
|
||||
"变电箱_门"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "加装封印",
|
||||
"score": 0,
|
||||
|
|
|
|||
|
|
@ -10,28 +10,27 @@ using UnityEngine;
|
|||
/// </summary>
|
||||
public class concentrator : MonoBehaviour
|
||||
{
|
||||
[Header("集中器")]
|
||||
/// <summary>
|
||||
/// 集中器
|
||||
/// </summary>
|
||||
public GameObject ConcentratorObj;
|
||||
|
||||
/// <summary>
|
||||
/// 集中器端子螺丝
|
||||
/// </summary>
|
||||
public GameObject[] ScrewObj;
|
||||
|
||||
[Header("集线盒电线动画")]
|
||||
/// <summary>
|
||||
/// 集线盒电线动画
|
||||
/// </summary>
|
||||
public SkinnedMeshRenderer ElectricWireSMR;
|
||||
|
||||
[Header("电线碰撞")]
|
||||
/// <summary>
|
||||
/// 电线碰撞
|
||||
/// </summary>
|
||||
public BoxCollider TapeMarCol;
|
||||
|
||||
[Header("电线前段胶带材质动画")]
|
||||
/// <summary>
|
||||
/// 电线前段胶带
|
||||
/// 电线前段胶带材质动画
|
||||
/// </summary>
|
||||
public Material TapeMar;
|
||||
|
||||
|
|
@ -40,25 +39,36 @@ public class concentrator : MonoBehaviour
|
|||
/// </summary>
|
||||
int allls;
|
||||
|
||||
[Header("是否播放集线器螺丝拆完后电线动画")]
|
||||
/// <summary>
|
||||
/// 是否播放集线器螺丝拆完后电线动画
|
||||
/// </summary>
|
||||
public static bool isPlayAni = true;
|
||||
|
||||
[Header("集中器盖子")]
|
||||
/// <summary>
|
||||
/// 集中器盖子
|
||||
/// </summary>
|
||||
public GameObject Cover;
|
||||
|
||||
[Header("新集中器在电箱中的位置")]
|
||||
/// <summary>
|
||||
/// 新集中器在电箱中的位置
|
||||
/// </summary>
|
||||
public Transform oncentratorTrans;
|
||||
|
||||
[Header("新集中器盖子上左右两颗螺丝")]
|
||||
/// <summary>
|
||||
/// 新集中器盖子上左右两颗螺丝
|
||||
/// </summary>
|
||||
public GameObject[] screw;
|
||||
|
||||
[Header("集中器端子螺丝")]
|
||||
/// <summary>
|
||||
/// 新集中器在电箱中的位置
|
||||
/// 集中器端子螺丝
|
||||
/// </summary>
|
||||
public Transform oncentratorTrans;
|
||||
public GameObject[] ScrewObj;
|
||||
|
||||
|
||||
bool isplaying = true;
|
||||
// Start is called before the first frame update
|
||||
|
|
|
|||
|
|
@ -11,36 +11,43 @@ using UnityEngine;
|
|||
|
||||
public class AdhesiveTape : MonoBehaviour
|
||||
{
|
||||
[Header("없鍍스던")]
|
||||
/// <summary>
|
||||
/// 없鍍스던
|
||||
/// </summary>
|
||||
public GameObject TapeOBJ;
|
||||
|
||||
[Header("든窟품뙈스던")]
|
||||
/// <summary>
|
||||
/// 든窟품뙈스던
|
||||
/// </summary>
|
||||
public Material TapeMar;
|
||||
|
||||
[Header("든窟툭旒")]
|
||||
/// <summary>
|
||||
/// 든窟툭旒
|
||||
/// </summary>
|
||||
public BoxCollider TapeMarCol;
|
||||
|
||||
[Header("스던賈痰빈貫零")]
|
||||
/// <summary>
|
||||
/// 스던賈痰빈貫零
|
||||
/// </summary>
|
||||
public Transform TapeTrans;
|
||||
|
||||
[Header("만膠竟鯤소宮샙麟깃")]
|
||||
/// <summary>
|
||||
/// 만膠竟鯤소宮샙麟깃
|
||||
/// </summary>
|
||||
public Transform PlayerCamera;
|
||||
|
||||
[Header("閨왯풂돨覩迦貫零")]
|
||||
/// <summary>
|
||||
/// 閨왯풂돨覩迦貫零
|
||||
/// </summary>
|
||||
private Vector3 originalPosition;
|
||||
|
||||
[Header("閨왯풂돨覩迦旗瘻")]
|
||||
/// <summary>
|
||||
/// 閨왯풂돨覩迦旗瘻
|
||||
/// </summary>
|
||||
|
|
@ -61,7 +68,6 @@ using UnityEngine;
|
|||
TapeMar.SetFloat("_step_p4", 0);
|
||||
TapeMar.SetFloat("_step_p5", 0);
|
||||
TapeMar.SetFloat("_step_p6", 0);
|
||||
//TapeMar.SetFloat("_step_p1", 1);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
|
@ -105,8 +111,6 @@ using UnityEngine;
|
|||
TapeMar.SetFloat("_step_p6", 1);
|
||||
yield return new WaitForSeconds(1f);
|
||||
StartCoroutine(TapeBack());
|
||||
//yield return new WaitForSeconds(1.5f);
|
||||
//TapeOBJ.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -10,71 +10,86 @@ using UnityEngine;
|
|||
/// </summary>
|
||||
public class Pliers : MonoBehaviour
|
||||
{
|
||||
[Header("剥线钳物体")]
|
||||
/// <summary>
|
||||
/// 剥线钳物体
|
||||
/// </summary>
|
||||
public GameObject PliersObj;
|
||||
|
||||
[Header("剥线钳动画")]
|
||||
/// <summary>
|
||||
/// 剥线钳动画
|
||||
/// </summary>
|
||||
public SkinnedMeshRenderer PliersSki;
|
||||
|
||||
[Header("柜门外封印动画")]
|
||||
/// <summary>
|
||||
/// 柜门外封印动画
|
||||
/// </summary>
|
||||
public SkinnedMeshRenderer ElectricBoxSkinnedMeshRenderer;
|
||||
|
||||
[Header("电箱里端子排右边封印")]
|
||||
/// <summary>
|
||||
/// 电箱里端子排右边封印
|
||||
/// </summary>
|
||||
public SkinnedMeshRenderer RightSkinnedMeshRenderer;
|
||||
|
||||
[Header("电箱端子排里面左边封印")]
|
||||
/// <summary>
|
||||
/// 电箱端子排里面左边封印
|
||||
/// </summary>
|
||||
public SkinnedMeshRenderer LeftSkinnedMeshRenderer;
|
||||
|
||||
[Header("集中器盖右边封印")]
|
||||
/// <summary>
|
||||
/// 集中器盖右边封印
|
||||
/// </summary>
|
||||
public SkinnedMeshRenderer RconcentratorSMR;
|
||||
|
||||
[Header("集中器盖左边封印")]
|
||||
/// <summary>
|
||||
/// 集中器盖左边封印
|
||||
/// </summary>
|
||||
public SkinnedMeshRenderer LconcentratorSMR;
|
||||
|
||||
[Header("变电箱门锁")]
|
||||
/// <summary>
|
||||
/// 变电箱门锁
|
||||
/// </summary>
|
||||
public Transform Doorlock;
|
||||
|
||||
/// <summary>
|
||||
/// 变电箱左门
|
||||
/// </summary>
|
||||
public Transform DoorOfCabinet;
|
||||
|
||||
/// <summary>
|
||||
/// 是否在梯子上
|
||||
/// </summary>
|
||||
bool Onladder ;
|
||||
|
||||
/// <summary>
|
||||
/// 斜口钳钳开每个封印位置
|
||||
/// </summary>
|
||||
public Transform[] InteractivePliersTrans;
|
||||
|
||||
[Header("工具解绑的父物体")]
|
||||
/// <summary>
|
||||
/// 工具解绑的父物体
|
||||
/// </summary>
|
||||
public GameObject PlayerCamera;
|
||||
|
||||
[Header("变电箱左门")]
|
||||
/// <summary>
|
||||
/// 变电箱左门
|
||||
/// </summary>
|
||||
public Transform DoorOfCabinet;
|
||||
|
||||
[Header("是否在梯子上")]
|
||||
/// <summary>
|
||||
/// 是否在梯子上
|
||||
/// </summary>
|
||||
bool Onladder ;
|
||||
|
||||
[Header("斜口钳钳开每个封印位置")]
|
||||
/// <summary>
|
||||
/// 斜口钳钳开每个封印位置
|
||||
/// </summary>
|
||||
public Transform[] InteractivePliersTrans;
|
||||
|
||||
|
||||
[Header("斜口钳的原始位置")]
|
||||
/// <summary>
|
||||
/// 斜口钳的原始位置
|
||||
/// </summary>
|
||||
private Vector3 originalPosition;
|
||||
|
||||
[Header(" 斜口钳的原始旋转")]
|
||||
/// <summary>
|
||||
/// 斜口钳的原始旋转
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -13,37 +13,40 @@ using Unity.VisualScripting;
|
|||
/// </summary>
|
||||
public class ElectricCheckPen : MonoBehaviour
|
||||
{
|
||||
[Header("剥线钳物体")]
|
||||
/// <summary>
|
||||
/// 验电笔物体
|
||||
/// </summary>
|
||||
public GameObject ElectricCheckPenOBJ;
|
||||
|
||||
[Header("验电笔插座验电处")]
|
||||
/// <summary>
|
||||
/// 验电笔插座验电处
|
||||
/// </summary>
|
||||
public Transform ElectricalInspectionOfficeTrans;
|
||||
|
||||
[Header("验电笔表面材质")]
|
||||
/// <summary>
|
||||
/// 验电笔表面材质
|
||||
/// </summary>
|
||||
public Material ElectricCheckPenMater;
|
||||
|
||||
[Header("判断")]
|
||||
public bool useColorOn = true; // 控制使用哪种颜色的布尔值
|
||||
|
||||
/// <summary>
|
||||
/// 是否在手上
|
||||
/// </summary>
|
||||
bool issocket;
|
||||
|
||||
/// <summary>
|
||||
/// 验电笔插座验电处
|
||||
/// </summary>
|
||||
public Transform ElectricalInspectionOfficeTrans;
|
||||
|
||||
public bool useColorOn = true; // 控制使用哪种颜色的布尔值
|
||||
/// <summary>
|
||||
/// 需要解绑的父物体
|
||||
/// </summary>
|
||||
//public GameObject PlayerCamera;
|
||||
void Start()
|
||||
{
|
||||
ElectricCheckPenMater.SetFloat("_SwitchOfEmi", 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 插座带电,电箱不带电
|
||||
/// 电箱不带电
|
||||
/// </summary>
|
||||
void Update()
|
||||
{
|
||||
|
|
@ -73,6 +76,9 @@ public class ElectricCheckPen : MonoBehaviour
|
|||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 插座带电
|
||||
/// </summary>
|
||||
private void OnMouseDown()
|
||||
{
|
||||
if (gameObject.name == "插座")
|
||||
|
|
@ -80,6 +86,7 @@ public class ElectricCheckPen : MonoBehaviour
|
|||
Warninglight();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验电笔点击插座
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -10,74 +10,83 @@ using HighlightPlus;
|
|||
public class Fieldobservation : MonoBehaviour
|
||||
{
|
||||
public static Fieldobservation Instance;
|
||||
/// <summary>
|
||||
/// 玩家相机
|
||||
/// </summary>
|
||||
public Transform Cameraobj;
|
||||
|
||||
[Header("警告按钮")]
|
||||
/// <summary>
|
||||
/// 警告按钮
|
||||
/// </summary>
|
||||
public Button ExclamationPointBtn;
|
||||
|
||||
bool isclick;
|
||||
[Header("玩家相机")]
|
||||
/// <summary>
|
||||
/// 玩家相机
|
||||
/// </summary>
|
||||
public Transform Cameraobj;
|
||||
|
||||
[Header("上梯子后坐标")]
|
||||
/// <summary>
|
||||
/// 上梯子后坐标
|
||||
/// </summary>
|
||||
public Transform UptheladderPos;
|
||||
|
||||
[Header("透明盖子")]
|
||||
/// <summary>
|
||||
/// 透明盖子
|
||||
/// </summary>
|
||||
public Transform Transparentover;
|
||||
|
||||
[Header("柜门卡栓碰撞")]
|
||||
/// <summary>
|
||||
/// 柜门卡栓碰撞
|
||||
/// </summary>
|
||||
public BoxCollider guimenkashuan;
|
||||
|
||||
[Header("电箱门")]
|
||||
/// <summary>
|
||||
/// 电箱门
|
||||
/// </summary>
|
||||
public GameObject guimen;
|
||||
|
||||
[Header("门锁01")]
|
||||
/// <summary>
|
||||
/// 门锁01
|
||||
/// </summary>
|
||||
public GameObject mensuo01;
|
||||
|
||||
[Header("柜门box碰撞")]
|
||||
/// <summary>
|
||||
/// 柜门box碰撞
|
||||
/// </summary>
|
||||
public BoxCollider guimenbox;
|
||||
|
||||
[Header("透明盖子上的封印cube碰撞")]
|
||||
/// <summary>
|
||||
/// 透明盖子上的封印cube碰撞
|
||||
/// </summary>
|
||||
public BoxCollider[] BOXseal;
|
||||
|
||||
[Header("透明盖子上的两颗螺丝")]
|
||||
/// <summary>
|
||||
/// 透明盖子上的两颗螺丝
|
||||
/// </summary>
|
||||
public GameObject[] screw;
|
||||
|
||||
[Header("判断")]
|
||||
/// <summary>
|
||||
/// 判断是否在梯子上
|
||||
/// </summary>
|
||||
public bool isPlayerOnLadder = false;
|
||||
|
||||
/// <summary>
|
||||
/// 判断封印盒子是否在手上
|
||||
/// </summary>
|
||||
bool isbox = true;
|
||||
|
||||
/// <summary>
|
||||
/// 透明盖子上的封印cube碰撞
|
||||
/// </summary>
|
||||
public BoxCollider[] BOXseal;
|
||||
bool isclick;
|
||||
|
||||
/// <summary>
|
||||
/// 柜门卡栓碰撞
|
||||
/// </summary>
|
||||
public BoxCollider guimenkashuan;
|
||||
|
||||
///// <summary>
|
||||
///// 透明盖子上的封印
|
||||
///// </summary>
|
||||
//public GameObject[] parentoverSeal;
|
||||
//public GameObject fengy;
|
||||
|
||||
/// <summary>
|
||||
/// 电箱门
|
||||
/// </summary>
|
||||
public GameObject guimen;
|
||||
|
||||
/// <summary>
|
||||
/// 门锁01
|
||||
/// </summary>
|
||||
public GameObject mensuo01;
|
||||
|
||||
/// <summary>
|
||||
/// 柜门box碰撞
|
||||
/// </summary>
|
||||
public BoxCollider guimenbox;
|
||||
|
||||
public GameObject fengy;
|
||||
|
||||
/// <summary>
|
||||
/// 判断是否在梯子上
|
||||
/// </summary>
|
||||
public bool isPlayerOnLadder = false;
|
||||
private void Awake()
|
||||
{
|
||||
Instance = this;
|
||||
|
|
@ -100,16 +109,11 @@ public class Fieldobservation : MonoBehaviour
|
|||
if (hit.collider.gameObject.name == "盖_透明外壳")
|
||||
{
|
||||
StartCoroutine(IEparentoverSeal());
|
||||
|
||||
BOXseal[0].enabled = true;
|
||||
BOXseal[1].enabled = true;
|
||||
//isbox = false;
|
||||
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(hit.collider.gameObject.name);
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (hit.collider.gameObject.name == "变电箱_门")
|
||||
{
|
||||
StartCoroutine(IEguimenkashuan());
|
||||
|
|
@ -125,6 +129,10 @@ public class Fieldobservation : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 玩家与物体碰撞
|
||||
/// </summary>
|
||||
/// <param name="other"></param>
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.gameObject.name == "UptheladderPos")
|
||||
|
|
@ -142,7 +150,7 @@ public class Fieldobservation : MonoBehaviour
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用户离开npc警告按钮消失
|
||||
/// 玩家离开npc警告按钮消失
|
||||
/// </summary>
|
||||
/// <param name="other"></param>
|
||||
private void OnTriggerExit(Collider other)
|
||||
|
|
@ -154,12 +162,8 @@ public class Fieldobservation : MonoBehaviour
|
|||
|
||||
}
|
||||
|
||||
public bool IsPlayerOnLadder()
|
||||
{
|
||||
return isPlayerOnLadder;
|
||||
}
|
||||
/// <summary>
|
||||
/// 透明外盖上的封印
|
||||
/// 透明外盖上的封印动画
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IEnumerator IEparentoverSeal()
|
||||
|
|
@ -186,4 +190,8 @@ public class Fieldobservation : MonoBehaviour
|
|||
mensuo01.gameObject.transform.DOLocalRotate(new Vector3(0, 0, 0), 1);
|
||||
guimenkashuan.gameObject.GetComponent<BoxCollider>().enabled = true;
|
||||
}
|
||||
public bool IsPlayerOnLadder()
|
||||
{
|
||||
return isPlayerOnLadder;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,16 +11,19 @@ using UnityEngine;
|
|||
/// </summary>
|
||||
public class RotationOfDoor : MonoBehaviour
|
||||
{
|
||||
[Header("场景外层的门")]
|
||||
/// <summary>
|
||||
/// 外层的门
|
||||
/// </summary>
|
||||
public Transform Outerdoor;
|
||||
|
||||
[Header("场景内层的门")]
|
||||
/// <summary>
|
||||
/// 内层的门
|
||||
/// </summary>
|
||||
public Transform Inneredoor;
|
||||
|
||||
[Header("栅栏内部碰撞")]
|
||||
/// <summary>
|
||||
/// 栅栏内部碰撞
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -6,32 +6,36 @@ using Unity.VisualScripting;
|
|||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 工作牌
|
||||
/// </summary>
|
||||
public class WorkPermit : MonoBehaviour
|
||||
{
|
||||
[Header("工作牌")]
|
||||
/// <summary>
|
||||
/// 工作牌
|
||||
/// </summary>
|
||||
public GameObject WorkPermitObj;
|
||||
|
||||
[Header("对话框")]
|
||||
/// <summary>
|
||||
/// 对话框
|
||||
/// </summary>
|
||||
public Image Dialogbox;
|
||||
|
||||
[Header("对话框的text")]
|
||||
/// <summary>
|
||||
/// 对话框的text
|
||||
/// </summary>
|
||||
public Text DialogboxText;
|
||||
|
||||
[Header("继续按钮")]
|
||||
/// <summary>
|
||||
/// 继续按钮
|
||||
/// </summary>
|
||||
public Button ContinueBtn;
|
||||
|
||||
[Header("下一句话按钮")]
|
||||
/// <summary>
|
||||
/// 下一句话按钮
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue