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