高粱、老师高亮

This commit is contained in:
huqibin 2025-05-28 16:13:55 +08:00
parent 01f277c747
commit 9ca6469f95
4 changed files with 217 additions and 8 deletions

View File

@ -73,6 +73,7 @@ GameObject:
- component: {fileID: 963909014448707086}
- component: {fileID: 6594386118979159493}
- component: {fileID: 4258570619904434678}
- component: {fileID: 3262949078777193882}
m_Layer: 0
m_Name: "\u9AD8\u7CB1\u9884\u5236\u4F53"
m_TagString: Untagged
@ -129,6 +130,178 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.6, y: 1.84, z: 0.6}
m_Center: {x: 0, y: 0.92, z: 0}
--- !u!114 &3262949078777193882
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963909014448707081}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 888380afc233049ce9e618f9f36c8ba8, type: 3}
m_Name:
m_EditorClassIdentifier:
profile: {fileID: 0}
profileSync: 0
camerasLayerMask:
serializedVersion: 2
m_Bits: 4294967295
effectGroup: 0
effectGroupLayer:
serializedVersion: 2
m_Bits: 4294967295
effectNameFilter:
combineMeshes: 0
alphaCutOff: 0
cullBackFaces: 1
ignoreObjectVisibility: 0
reflectionProbes: 0
GPUInstancing: 1
optimizeSkinnedMesh: 1
depthClip: 0
cameraDistanceFade: 0
cameraDistanceFadeNear: 0
cameraDistanceFadeFar: 1000
normalsOption: 0
ignore: 0
_highlighted: 0
fadeInDuration: 0
fadeOutDuration: 0
flipY: 0
constantWidth: 1
subMeshMask: -1
overlay: 0
overlayMode: 0
overlayColor: {r: 1, g: 0.92156863, b: 0.015686275, a: 1}
overlayAnimationSpeed: 1
overlayMinIntensity: 0.5
overlayBlending: 1
overlayTexture: {fileID: 0}
overlayTextureUVSpace: 0
overlayTextureScale: 1
overlayVisibility: 0
outline: 1
outlineColor: {r: 0.34440607, g: 0.990566, b: 0.0046724924, a: 1}
outlineColorStyle: 0
outlineGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
key1: {r: 1, g: 1, b: 1, a: 1}
key2: {r: 0, g: 0, b: 0, a: 0}
key3: {r: 0, g: 0, b: 0, a: 0}
key4: {r: 0, g: 0, b: 0, a: 0}
key5: {r: 0, g: 0, b: 0, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 65535
ctime2: 0
ctime3: 0
ctime4: 0
ctime5: 0
ctime6: 0
ctime7: 0
atime0: 0
atime1: 65535
atime2: 0
atime3: 0
atime4: 0
atime5: 0
atime6: 0
atime7: 0
m_Mode: 0
m_NumColorKeys: 2
m_NumAlphaKeys: 2
outlineGradientInLocalSpace: 0
outlineWidth: 0.45
outlineBlurPasses: 2
outlineQuality: 3
outlineEdgeMode: 0
outlineEdgeThreshold: 0.995
outlineDownsampling: 1
outlineVisibility: 0
glowBlendMode: 0
outlineBlitDebug: 0
outlineIndependent: 0
outlineContourStyle: 0
glow: 0
glowWidth: 0.4
glowQuality: 3
glowBlurMethod: 0
glowDownsampling: 2
glowHQColor: {r: 0.64, g: 1, b: 0, a: 1}
glowDithering: 1
glowMagicNumber1: 0.75
glowMagicNumber2: 0.5
glowAnimationSpeed: 1
glowVisibility: 0
glowBlitDebug: 0
glowBlendPasses: 1
glowPasses:
- offset: 4
alpha: 0.1
color: {r: 0.64, g: 1, b: 0, a: 1}
- offset: 3
alpha: 0.2
color: {r: 0.64, g: 1, b: 0, a: 1}
- offset: 2
alpha: 0.3
color: {r: 0.64, g: 1, b: 0, a: 1}
- offset: 1
alpha: 0.4
color: {r: 0.64, g: 1, b: 0, a: 1}
glowIgnoreMask: 0
innerGlow: 0
innerGlowWidth: 1
innerGlowColor: {r: 1, g: 1, b: 1, a: 1}
innerGlowBlendMode: 0
innerGlowVisibility: 0
targetFX: 0
targetFXTexture: {fileID: 0}
targetFXColor: {r: 1, g: 1, b: 1, a: 1}
targetFXCenter: {fileID: 0}
targetFXRotationSpeed: 50
targetFXInitialScale: 4
targetFXEndScale: 1.5
targetFXScaleToRenderBounds: 1
targetFXAlignToGround: 0
targetFXFadePower: 32
targetFXGroundMaxDistance: 10
targetFXGroundLayerMask:
serializedVersion: 2
m_Bits: 4294967295
targetFXTransitionDuration: 0.5
targetFXStayDuration: 1.5
targetFXVisibility: 1
seeThrough: 2
seeThroughOccluderMask:
serializedVersion: 2
m_Bits: 4294967295
seeThroughOccluderThreshold: 0.3
seeThroughOccluderMaskAccurate: 0
seeThroughOccluderCheckInterval: 1
seeThroughOccluderCheckIndividualObjects: 0
seeThroughDepthOffset: 0
seeThroughMaxDepth: 0
seeThroughIntensity: 0.8
seeThroughTintAlpha: 0.5
seeThroughTintColor: {r: 1, g: 0, b: 0, a: 1}
seeThroughNoise: 1
seeThroughBorder: 0
seeThroughBorderColor: {r: 0, g: 0, b: 0, a: 1}
seeThroughBorderOnly: 0
seeThroughBorderWidth: 0.45
seeThroughOrdered: 0
seeThroughTexture: {fileID: 0}
seeThroughTextureUVSpace: 0
seeThroughTextureScale: 1
rmsCount: 0
hitFxInitialIntensity: 0
hitFxMode: 0
hitFxFadeOutDuration: 0.25
hitFxColor: {r: 1, g: 1, b: 1, a: 1}
hitFxRadius: 0.5
--- !u!1 &5495461739195588011
GameObject:
m_ObjectHideFlags: 0

View File

@ -1,6 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SocialPlatforms;
public enum SorghumState
{
@ -35,6 +36,20 @@ public class SorghumController : PermanentTriggerBase
// 应用新的旋转角度
transform.eulerAngles = currentRotation;
}
switch (State)
{
case SorghumState.Diseased:
triggerName = "高粱_病株";
this.gameObject.name = "高粱_病株";
break;
case SorghumState.Healthy:
triggerName = "高粱_正常";
this.gameObject.name = "高粱_正常";
break;
}
}
protected override void OnMDown()
@ -65,4 +80,25 @@ public class SorghumController : PermanentTriggerBase
GameManager.UIMgr.ShowPanel<UI_PlantComparisonPanel>(E_UI_Layer.Top, (p) => { p.Init(); });
}
}
protected override void OnMEnter()
{
base.OnMEnter();
//if (GameManager.RunModelMgr?.ModeType != E_ModeType.Study)
//{
_highlight.SetHighlighted(true);
//}
}
protected override void OnMExit()
{
//if (GameManager.RunModelMgr?.ModeType != E_ModeType.Study)
_highlight.SetHighlighted(false);
base.OnMExit();
}
protected override void OnAwake()
{
base.OnAwake();
}
}

View File

@ -42,14 +42,14 @@ public class NPCController : PermanentTriggerBase
{
base.OnMEnter();
if (!isClose) return;
if (GameManager.RunModelMgr?.ModeType != E_ModeType.Study)
{
//if (GameManager.RunModelMgr?.ModeType != E_ModeType.Study)
//{
_highlight.SetHighlighted(true);
}
//}
}
protected override void OnMExit()
{
if (GameManager.RunModelMgr?.ModeType != E_ModeType.Study)
//if (GameManager.RunModelMgr?.ModeType != E_ModeType.Study)
_highlight.SetHighlighted(false);
base.OnMExit();
}

View File

@ -4,15 +4,15 @@
<Subject id="2002" deviceTypeId="20002" schemeName="酿酒高粱的形态特征及类型识别" deviceMap="单相表" isFault="0" schemeDes="" ToolOrMaterilOrDevice="放大镜,剪刀,解剖刀,镊子">
<Process id="" processName="观察高粱特征" processDes="">
<Step id="" subProcessName="从老师处拿取工具" isPrecondition="FALSE" precondition="" tipTitle="" tips="">
<operation id="" subProcessStepName="填写拆装工作单" isPrecondition="" precondition="Office" triggerID="拆装工单按钮" tipTitle="请填写拆装工作单" score=""></operation>
<operation id="" subProcessStepName="从老师处拿取工具" isPrecondition="" precondition="Office" triggerID="NPC客户" tipTitle="请填写拆装工作单" score=""></operation>
</Step>
<Step id="" subProcessName="观察成熟期正常特征" isPrecondition="FALSE" precondition="" tipTitle="" tips="请填写正确的拆装工作单">
<operation id="" subProcessStepName="填写拆装工作单" isPrecondition="" precondition="Office" triggerID="拆装工单按钮" tipTitle="请填写拆装工作单" score=""></operation>
<operation id="" subProcessStepName="观察成熟期正常特征" isPrecondition="" precondition="Office" triggerID="高粱_正常" tipTitle="请填写拆装工作单" score=""></operation>
</Step>
<Step id="" subProcessName="观察成熟期病株特征" isPrecondition="FALSE" precondition="" tipTitle="" tips="请前往工具间,选取工作服、绝缘鞋、安全帽、手套,到梳妆镜面前进行换装">
<operation id="" subProcessStepName="前往工具间" isPrecondition="" precondition="Office" triggerID="工具间按钮" tipTitle="前往工具间" score=""></operation>
<operation id="" subProcessStepName="观察成熟期病株特征" isPrecondition="" precondition="Office" triggerID="高粱_病株" tipTitle="前往工具间" score=""></operation>
</Step>
</Process>