Skip to content
This repository was archived by the owner on Apr 3, 2022. It is now read-only.

Commit b1fefe7

Browse files
committed
Update master-slave example.
1 parent 114d265 commit b1fefe7

File tree

2 files changed

+134
-58
lines changed

2 files changed

+134
-58
lines changed

Demos/AI/MinimalAI3D/MinimalAI3D_MasterSlave.unity

Lines changed: 133 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ LightmapSettings:
9797
m_PVRFilteringAtrousPositionSigmaAO: 1
9898
m_ExportTrainingData: 0
9999
m_TrainingDataDestination: TrainingData
100+
m_LightProbeSampleCountMultiplier: 4
100101
m_LightingDataAsset: {fileID: 112000001, guid: 604bb26d9af981d46bbfa5fc8a7cbac2,
101102
type: 2}
102103
m_UseShadowmask: 0
@@ -342,13 +343,40 @@ MonoBehaviour:
342343
PlayerPrefabs:
343344
- {fileID: 114839196621103566, guid: bfbd3fb63c624fb4884bf770fcc77ed9, type: 3}
344345
AutoAttributePlayerIDs: 1
346+
SceneCharacters: []
345347
InitialSpawnPoint: {fileID: 1618121293}
346348
CurrentCheckpoint: {fileID: 0}
347349
PointsOfEntry: []
348350
IntroFadeDuration: 0.1
349351
OutroFadeDuration: 0.1
350352
FaderID: 0
351-
FadeCurve: 4
353+
FadeCurve:
354+
MMTweenDefinitionType: 0
355+
MMTweenCurve: 6
356+
Curve:
357+
serializedVersion: 2
358+
m_Curve:
359+
- serializedVersion: 3
360+
time: 0
361+
value: 0
362+
inSlope: 0
363+
outSlope: 0
364+
tangentMode: 0
365+
weightedMode: 0
366+
inWeight: 0
367+
outWeight: 0
368+
- serializedVersion: 3
369+
time: 1
370+
value: 1
371+
inSlope: 0
372+
outSlope: 0
373+
tangentMode: 0
374+
weightedMode: 0
375+
inWeight: 0
376+
outWeight: 0
377+
m_PreInfinity: 2
378+
m_PostInfinity: 2
379+
m_RotationOrder: 4
352380
RespawnDelay: 2
353381
DelayBeforeDeathScreen: 1
354382
--- !u!1001 &139557747
@@ -557,6 +585,23 @@ PrefabInstance:
557585
propertyPath: m_Name
558586
value: SignPost3D (1)
559587
objectReference: {fileID: 0}
588+
- target: {fileID: 114687565823369108, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
589+
type: 3}
590+
propertyPath: m_Text
591+
value: "This AI will patrol along a set of nodes \nand move towards you once
592+
you get in its range.\n\n<color=black>It will alert all other guards once\nyou
593+
are spotted.</color>"
594+
objectReference: {fileID: 0}
595+
- target: {fileID: 224524113520603282, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
596+
type: 3}
597+
propertyPath: m_SizeDelta.x
598+
value: 0
599+
objectReference: {fileID: 0}
600+
- target: {fileID: 224524113520603282, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
601+
type: 3}
602+
propertyPath: m_SizeDelta.y
603+
value: 0
604+
objectReference: {fileID: 0}
560605
- target: {fileID: 224704701410533446, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
561606
type: 3}
562607
propertyPath: m_LocalPosition.x
@@ -657,13 +702,6 @@ PrefabInstance:
657702
propertyPath: m_LocalScale.z
658703
value: 0.0100000035
659704
objectReference: {fileID: 0}
660-
- target: {fileID: 114687565823369108, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
661-
type: 3}
662-
propertyPath: m_Text
663-
value: "This AI will patrol along a set of nodes \nand move towards you once
664-
you get in its range.\n\n<color=black>It will alert all other guards once\nyou
665-
are spotted.</color>"
666-
objectReference: {fileID: 0}
667705
- target: {fileID: 224960395141809158, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
668706
type: 3}
669707
propertyPath: m_AnchoredPosition.x
@@ -694,16 +732,6 @@ PrefabInstance:
694732
propertyPath: m_AnchorMax.y
695733
value: 0
696734
objectReference: {fileID: 0}
697-
- target: {fileID: 224524113520603282, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
698-
type: 3}
699-
propertyPath: m_SizeDelta.x
700-
value: 0
701-
objectReference: {fileID: 0}
702-
- target: {fileID: 224524113520603282, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
703-
type: 3}
704-
propertyPath: m_SizeDelta.y
705-
value: 0
706-
objectReference: {fileID: 0}
707735
m_RemovedComponents: []
708736
m_SourcePrefab: {fileID: 100100000, guid: 242af4d12a7b75b4bbb0f5d9b8207580, type: 3}
709737
--- !u!4 &316991524 stripped
@@ -953,7 +981,7 @@ Transform:
953981
m_LocalScale: {x: 1, y: 1, z: 1}
954982
m_Children: []
955983
m_Father: {fileID: 1918232351}
956-
m_RootOrder: 3
984+
m_RootOrder: 4
957985
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
958986
--- !u!114 &518331449
959987
MonoBehaviour:
@@ -1757,8 +1785,9 @@ Light:
17571785
m_PrefabAsset: {fileID: 0}
17581786
m_GameObject: {fileID: 1015704714}
17591787
m_Enabled: 1
1760-
serializedVersion: 9
1788+
serializedVersion: 10
17611789
m_Type: 1
1790+
m_Shape: 0
17621791
m_Color: {r: 1, g: 0.97417927, b: 0.928, a: 1}
17631792
m_Intensity: 1
17641793
m_Range: 10
@@ -1854,6 +1883,7 @@ MeshRenderer:
18541883
m_MotionVectors: 1
18551884
m_LightProbeUsage: 1
18561885
m_ReflectionProbeUsage: 1
1886+
m_RayTracingMode: 2
18571887
m_RenderingLayerMask: 4294967295
18581888
m_RendererPriority: 0
18591889
m_Materials:
@@ -2279,6 +2309,7 @@ MeshRenderer:
22792309
m_MotionVectors: 1
22802310
m_LightProbeUsage: 1
22812311
m_ReflectionProbeUsage: 1
2312+
m_RayTracingMode: 2
22822313
m_RenderingLayerMask: 4294967295
22832314
m_RendererPriority: 0
22842315
m_Materials:
@@ -2500,6 +2531,7 @@ MeshRenderer:
25002531
m_MotionVectors: 1
25012532
m_LightProbeUsage: 1
25022533
m_ReflectionProbeUsage: 1
2534+
m_RayTracingMode: 2
25032535
m_RenderingLayerMask: 4294967295
25042536
m_RendererPriority: 0
25052537
m_Materials:
@@ -2700,6 +2732,7 @@ MeshRenderer:
27002732
m_MotionVectors: 1
27012733
m_LightProbeUsage: 1
27022734
m_ReflectionProbeUsage: 1
2735+
m_RayTracingMode: 2
27032736
m_RenderingLayerMask: 4294967295
27042737
m_RendererPriority: 0
27052738
m_Materials:
@@ -3092,6 +3125,7 @@ Transform:
30923125
- {fileID: 105135217}
30933126
- {fileID: 1618121292}
30943127
- {fileID: 1747284129}
3128+
- {fileID: 1924529576}
30953129
- {fileID: 518331448}
30963130
m_Father: {fileID: 0}
30973131
m_RootOrder: 2
@@ -3102,6 +3136,49 @@ Transform:
31023136
type: 3}
31033137
m_PrefabInstance: {fileID: 1916558095}
31043138
m_PrefabAsset: {fileID: 0}
3139+
--- !u!1 &1924529575
3140+
GameObject:
3141+
m_ObjectHideFlags: 0
3142+
m_CorrespondingSourceObject: {fileID: 0}
3143+
m_PrefabInstance: {fileID: 0}
3144+
m_PrefabAsset: {fileID: 0}
3145+
serializedVersion: 6
3146+
m_Component:
3147+
- component: {fileID: 1924529576}
3148+
- component: {fileID: 1924529577}
3149+
m_Layer: 0
3150+
m_Name: GameObject
3151+
m_TagString: Untagged
3152+
m_Icon: {fileID: 0}
3153+
m_NavMeshLayer: 0
3154+
m_StaticEditorFlags: 0
3155+
m_IsActive: 1
3156+
--- !u!4 &1924529576
3157+
Transform:
3158+
m_ObjectHideFlags: 0
3159+
m_CorrespondingSourceObject: {fileID: 0}
3160+
m_PrefabInstance: {fileID: 0}
3161+
m_PrefabAsset: {fileID: 0}
3162+
m_GameObject: {fileID: 1924529575}
3163+
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
3164+
m_LocalPosition: {x: 0, y: 0, z: 0}
3165+
m_LocalScale: {x: 1, y: 1, z: 1}
3166+
m_Children: []
3167+
m_Father: {fileID: 1918232351}
3168+
m_RootOrder: 3
3169+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
3170+
--- !u!114 &1924529577
3171+
MonoBehaviour:
3172+
m_ObjectHideFlags: 0
3173+
m_CorrespondingSourceObject: {fileID: 0}
3174+
m_PrefabInstance: {fileID: 0}
3175+
m_PrefabAsset: {fileID: 0}
3176+
m_GameObject: {fileID: 1924529575}
3177+
m_Enabled: 1
3178+
m_EditorHideFlags: 0
3179+
m_Script: {fileID: 11500000, guid: 189a908dfa1455a4fbb4ee28d46cd041, type: 3}
3180+
m_Name:
3181+
m_EditorClassIdentifier:
31053182
--- !u!1 &1940791664
31063183
GameObject:
31073184
m_ObjectHideFlags: 0
@@ -3203,11 +3280,6 @@ PrefabInstance:
32033280
propertyPath: m_LocalEulerAnglesHint.z
32043281
value: 0
32053282
objectReference: {fileID: 0}
3206-
- target: {fileID: 224429692818469760, guid: 9edcf7e494cf3e640b18cb7495fb179a,
3207-
type: 3}
3208-
propertyPath: m_AnchoredPosition.y
3209-
value: -28
3210-
objectReference: {fileID: 0}
32113283
m_RemovedComponents: []
32123284
m_SourcePrefab: {fileID: 100100000, guid: 9edcf7e494cf3e640b18cb7495fb179a, type: 3}
32133285
--- !u!1001 &1959211733
@@ -3217,6 +3289,36 @@ PrefabInstance:
32173289
m_Modification:
32183290
m_TransformParent: {fileID: 2036635906}
32193291
m_Modifications:
3292+
- target: {fileID: 114687565823369108, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
3293+
type: 3}
3294+
propertyPath: m_Text
3295+
value: 'This scene shows an example of AI Master/Slave
3296+
3297+
setup in the
3298+
TopDown Engine. A character will act
3299+
3300+
as a sentinel and alert all
3301+
other guards once the
3302+
3303+
player has been spotted.
3304+
3305+
3306+
<color=black>You''re
3307+
invincible, so don''t worry about getting shot.
3308+
3309+
You can kill these
3310+
AIs though!</color>'
3311+
objectReference: {fileID: 0}
3312+
- target: {fileID: 224524113520603282, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
3313+
type: 3}
3314+
propertyPath: m_SizeDelta.x
3315+
value: 0
3316+
objectReference: {fileID: 0}
3317+
- target: {fileID: 224524113520603282, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
3318+
type: 3}
3319+
propertyPath: m_SizeDelta.y
3320+
value: 0
3321+
objectReference: {fileID: 0}
32203322
- target: {fileID: 224704701410533446, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
32213323
type: 3}
32223324
propertyPath: m_LocalPosition.x
@@ -3317,22 +3419,6 @@ PrefabInstance:
33173419
propertyPath: m_LocalScale.z
33183420
value: 0.0100000035
33193421
objectReference: {fileID: 0}
3320-
- target: {fileID: 114687565823369108, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
3321-
type: 3}
3322-
propertyPath: m_Text
3323-
value: 'This scene shows an example of AI Master/Slave
3324-
3325-
setup in the TopDown Engine. A character will act
3326-
3327-
as a sentinel and alert all other guards once the
3328-
3329-
player has been spotted.
3330-
3331-
3332-
<color=black>You''re invincible, so don''t worry about getting shot.
3333-
3334-
You can kill these AIs though!</color>'
3335-
objectReference: {fileID: 0}
33363422
- target: {fileID: 224960395141809158, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
33373423
type: 3}
33383424
propertyPath: m_AnchoredPosition.x
@@ -3363,16 +3449,6 @@ PrefabInstance:
33633449
propertyPath: m_AnchorMax.y
33643450
value: 0
33653451
objectReference: {fileID: 0}
3366-
- target: {fileID: 224524113520603282, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
3367-
type: 3}
3368-
propertyPath: m_SizeDelta.x
3369-
value: 0
3370-
objectReference: {fileID: 0}
3371-
- target: {fileID: 224524113520603282, guid: 242af4d12a7b75b4bbb0f5d9b8207580,
3372-
type: 3}
3373-
propertyPath: m_SizeDelta.y
3374-
value: 0
3375-
objectReference: {fileID: 0}
33763452
m_RemovedComponents: []
33773453
m_SourcePrefab: {fileID: 100100000, guid: 242af4d12a7b75b4bbb0f5d9b8207580, type: 3}
33783454
--- !u!4 &2035921545 stripped
@@ -3404,7 +3480,7 @@ Transform:
34043480
m_PrefabInstance: {fileID: 0}
34053481
m_PrefabAsset: {fileID: 0}
34063482
m_GameObject: {fileID: 2036635905}
3407-
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
3483+
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
34083484
m_LocalPosition: {x: 0, y: 0, z: 0}
34093485
m_LocalScale: {x: 1, y: 1, z: 1}
34103486
m_Children:
@@ -3545,11 +3621,6 @@ PrefabInstance:
35453621
m_Modification:
35463622
m_TransformParent: {fileID: 990271163}
35473623
m_Modifications:
3548-
- target: {fileID: 9104089925448392186, guid: 11b17562682a85e46aec9b1caac62f34,
3549-
type: 3}
3550-
propertyPath: m_Name
3551-
value: PatrolAndMoveAI_Master
3552-
objectReference: {fileID: 0}
35533624
- target: {fileID: 9100842555303445114, guid: 11b17562682a85e46aec9b1caac62f34,
35543625
type: 3}
35553626
propertyPath: m_LocalPosition.x
@@ -3605,5 +3676,10 @@ PrefabInstance:
36053676
propertyPath: m_LocalEulerAnglesHint.z
36063677
value: 0
36073678
objectReference: {fileID: 0}
3679+
- target: {fileID: 9104089925448392186, guid: 11b17562682a85e46aec9b1caac62f34,
3680+
type: 3}
3681+
propertyPath: m_Name
3682+
value: PatrolAndMoveAI_Master
3683+
objectReference: {fileID: 0}
36083684
m_RemovedComponents: []
36093685
m_SourcePrefab: {fileID: 100100000, guid: 11b17562682a85e46aec9b1caac62f34, type: 3}

Demos/AI/MinimalAI3D/MinimalAI3D_MasterSlave.unity.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)