This commit is contained in:
taosuqi 2024-06-13 14:49:40 +08:00
parent 1d87accc0d
commit b94a336148
14 changed files with 1736 additions and 581 deletions

View File

@ -191,6 +191,7 @@
<Compile Include="Assets\Standard Assets 1\Characters\FirstPersonCharacter\Scripts\HeadBob.cs" />
<Compile Include="Assets\Standard Assets 1\Characters\RollerBall\Scripts\BallUserControl.cs" />
<Compile Include="Assets\Scripts\MenuBtOnClick.cs" />
<Compile Include="Assets\Seal.cs" />
<Compile Include="Assets\StandaloneFileBrowser\StandaloneFileBrowserEditor.cs" />
<Compile Include="Assets\Standard Assets 1\Vehicles\Car\Scripts\CarAIControl.cs" />
<Compile Include="Assets\Standard Assets 1\Utility\FollowTarget.cs" />

View File

@ -220,7 +220,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &2158447557103092517
RectTransform:
m_ObjectHideFlags: 0
@ -349,8 +349,8 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_Sprite: {fileID: 21300000, guid: fba8ba586a89da64f87814ea7bbcce3a, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4

View File

@ -6948,6 +6948,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 950ed43ca18941be90c7e1a16b578539, type: 3}
m_Name:
m_EditorClassIdentifier:
Scenename: "\u73B0\u573A _Test"
--- !u!1 &2027912694
GameObject:
m_ObjectHideFlags: 0

View File

@ -146,16 +146,13 @@ public class Screwdriver : MonoBehaviour
if (hit.collider.gameObject.name == "미땍쭁介_Rdown")
{
Debug.Log(hit.collider.gameObject.name);
StartCoroutine(IEHubSegmentRowScrews());
ConcentratorScrewObj[0].SetActive(false);
ConcentratorScrewObj[1].SetActive(false);
StartCoroutine(right());
}
if (hit.collider.gameObject.name == "섞든포미땍쭁介_Ldown")
{
Debug.Log(hit.collider.gameObject.name);
StartCoroutine(IEHubSegmentRowScrews());
ConcentratorScrewObj[2].SetActive(false);
ConcentratorScrewObj[3].SetActive(false);
StartCoroutine(left());
}
}
}
@ -371,4 +368,19 @@ public class Screwdriver : MonoBehaviour
ScrewdriverTrans.gameObject.transform.DOLocalMove(new Vector3(3.1215f, 2.1383f, -1.3484f),0.5f);
yield return new WaitForSeconds(1);
}
IEnumerator right()
{
StartCoroutine(IEHubSegmentRowScrews());
yield return new WaitForSeconds(0.5f);
ConcentratorScrewObj[0].SetActive(false);
ConcentratorScrewObj[1].SetActive(false);
}
IEnumerator left()
{
StartCoroutine(IEHubSegmentRowScrews());
yield return new WaitForSeconds(0.5f);
ConcentratorScrewObj[2].SetActive(false);
ConcentratorScrewObj[3].SetActive(false);
}
}

View File

@ -7,11 +7,12 @@ namespace ToolsPack
{
public class ToolsPackSceneJump : MonoBehaviour
{
public string Scenename;
public void Start()
{
this.GetComponent<Button>().onClick.AddListener(delegate
{
SceneManager.LoadScene("现场 _Test");
SceneManager.LoadScene(Scenename);
});
}
}

View File

@ -0,0 +1,57 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 盒装封印
/// </summary>
public class Seal : MonoBehaviour
{
/// <summary>
/// 盒装封印
/// </summary>
public GameObject SealObj;
/// <summary>
/// 新集中器上封印
/// </summary>
public GameObject[] Sealcol;
/// <summary>
/// 封印动画
/// </summary>
//public SkinnedMeshRenderer[] Sealski;
// Start is called before the first frame update
void Start()
{
for (int i = 0; i < Sealcol.Length; i++)
{
Sealcol[i].GetComponent<BoxCollider>().enabled = true;
}
}
// Update is called once per frame
void Update()
{
if (Input.GetMouseButtonDown(0))
{//Camera.transform.forward
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;
bool raycast = Physics.Raycast(ray, out hit);
if (raycast)
{
if (hit.collider.gameObject.name == "集中器_封印_L碰撞")
{
Sealcol[0].gameObject.SetActive(true);
Debug.Log(hit.collider.gameObject.name);
}
if (hit.collider.gameObject.name == "集中器_封印R碰撞 ")
{
Sealcol[1].gameObject.SetActive(true);
Debug.Log(hit.collider.gameObject.name);
}
}
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 855955b40a9d31c418c103db0016d6a3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -13,13 +13,6 @@
"变电箱_门",
"插座"
]
},{
"description": "我i开采。",
"score": 0,
"isSequential": true,
"targetObjects": [
"插座"
]
}
]
},
@ -36,6 +29,177 @@
]
}
]
}
},
{
"stepDescription": "步骤 3 描述",
"score": 0,
"actions": [
{
"description": "用钳刀打开接线盒封印",
"score": 0,
"isSequential": false,
"targetObjects": [
"接线盒_封印R",
"接线盒_封印L"
]
}
]
},
{
"stepDescription": "步骤 5 描述",
"score": 0,
"actions": [
{
"description": "用螺丝刀打开接线盒",
"score": 0,
"isSequential": false,
"targetObjects": [
"盖_固定螺丝_Rup",
"固定螺丝_Ldown"
]
}
]
},
{
"stepDescription": "步骤 6 描述",
"score": 0,
"actions": [
{
"description": ",将拨片调整至断电状态(带电作业调整横向滑块,断电作业调整竖向滑块,系统默认断电作业),开始作业;",
"score": 0,
"isSequential": false,
"targetObjects": [
"接线盒纵向滑块001",
"接线盒纵向滑块002",
"接线盒纵向滑块003",
"接线盒纵向滑块004"
]
}
]
},
{
"stepDescription": "步骤 7 描述",
"score": 0,
"actions": [
{
"description": "打开集中器封印,去除螺丝;",
"score": 0,
"isSequential": false,
"targetObjects": [
"集中器_封印R",
"集中器_封印_L",
"壳固定螺丝_R",
"壳固定螺丝_L"
]
}
]
},
{
"stepDescription": "步骤 8 描述",
"score": 0,
"actions": [
{
"description": "将集中器连接线的螺丝全部拧开,拧开两个固定该线的螺丝后,线消失。重复操作,直至全部线拆除;",
"score": 0,
"isSequential": false,
"targetObjects": [
"JZQ_螺丝005",
"JZQ_螺丝006",
"JZQ_螺丝009",
"JZQ_螺丝010",
"JZQ_螺丝015",
"JZQ_螺丝016",
"JZQ_螺丝021",
"JZQ_螺丝022",
"JZQ_螺丝023",
"JZQ_螺丝024",
"JZQ_螺丝041",
"JZQ_螺丝042"
]
}
]
},
{
"stepDescription": "步骤 9 描述",
"score": 0,
"actions": [
{
"description": "线失去固定后,向前弯曲;",
"score": 0,
"isSequential": true,
"targetObjects": [
"pCylinder170"
]
}
]
},
{
"stepDescription": "步骤 10 描述",
"score": 0,
"actions": [
{
"description": "取出胶带将头部缠绕;",
"score": 0,
"isSequential": true,
"targetObjects": [
"pCylinder170"
]
}
]
},
{
"stepDescription": "步骤 11 描述",
"score": 0,
"actions": [
{
"description": "拆除固定集中器的螺丝,取下集中器;",
"score": 0,
"isSequential": false,
"targetObjects": [
"固定螺丝_Rdown",
"集电器固定螺丝_Ldown"
]
}
]
},
{
"stepDescription": "步骤 12 描述",
"score": 0,
"actions": [
{
"description": "取出新的集中器,移动至原先集中器位置;",
"score": 0,
"isSequential": false,
"targetObjects": [
"新的集中器碰撞"
]
}
]
},
{
"stepDescription": "步骤 13 描述",
"score": 0,
"actions": [
{
"description": "通过鼠标点击取下需要连接上去的线头胶带,再点击集中器需要连接的端点,进行连线,练好一根线,上一个螺丝,直至全部螺丝上完。",
"score": 0,
"isSequential": false,
"targetObjects": [
"JZQ_螺丝005",
"JZQ_螺丝006",
"JZQ_螺丝009",
"JZQ_螺丝010",
"JZQ_螺丝015",
"JZQ_螺丝016",
"JZQ_螺丝021",
"JZQ_螺丝022",
"JZQ_螺丝023",
"JZQ_螺丝024",
"JZQ_螺丝041",
"JZQ_螺丝042"
]
}
]
},
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

View File

@ -0,0 +1,114 @@
fileFormatVersion: 2
guid: ddbfd5d199dccfb46a9cd211d6d98c45
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1,114 @@
fileFormatVersion: 2
guid: fba8ba586a89da64f87814ea7bbcce3a
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -38,6 +38,15 @@ public class concentrator : MonoBehaviour
/// </summary>
public static bool isPlayAni = true;
/// <summary>
/// 集中器盖子
/// </summary>
public GameObject Cover;
/// <summary>
/// 新盖子上左右两颗螺丝
/// </summary>
public GameObject[] screw;
bool isplaying = true;
// Start is called before the first frame update
void Start()
@ -111,7 +120,7 @@ public class concentrator : MonoBehaviour
}
}
/// <summary>
/// 集线器上线动画
/// 集线器复位动画
/// </summary>
/// <returns></returns>
IEnumerator Newconcentrator()
@ -135,6 +144,12 @@ public class concentrator : MonoBehaviour
ElectricWireSMR.SetBlendShapeWeight(i, a);
}
}
yield return new WaitForSeconds(6f);
Cover.gameObject.SetActive(true);
yield return new WaitForSeconds(1.0f);
screw[0].gameObject.SetActive(true);
yield return new WaitForSeconds(1.0f);
screw[1].gameObject.SetActive(true);
}
/// <summary>