com.valectric.mooserunner 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/CLI~/mooserunnerCli.exe +0 -0
- package/CLI~/mooserunnerCliDaemon.exe +0 -0
- package/Editor/GUI/MooseRunnerFail.png +0 -0
- package/Editor/GUI/MooseRunnerFail.png.meta +140 -0
- package/Editor/GUI/MooseRunnerGreenLED.png +0 -0
- package/Editor/GUI/MooseRunnerGreenLED.png.meta +140 -0
- package/Editor/GUI/MooseRunnerLogoBannerSmall.png +0 -0
- package/Editor/GUI/MooseRunnerLogoBannerSmall.png.meta +140 -0
- package/Editor/GUI/MooseRunnerNotRun.png +0 -0
- package/Editor/GUI/MooseRunnerNotRun.png.meta +140 -0
- package/Editor/GUI/MooseRunnerPass.png +0 -0
- package/Editor/GUI/MooseRunnerPass.png.meta +140 -0
- package/Editor/GUI/MooseRunnerYellowLED.png +0 -0
- package/Editor/GUI/MooseRunnerYellowLED.png.meta +140 -0
- package/Editor/MooseRunner.Editor.asmdef +17 -0
- package/Editor/MooseRunner.Editor.asmdef.meta +7 -0
- package/Editor/MooseRunner.Internal.Editor.dll +0 -0
- package/Editor/MooseRunner.Internal.Editor.dll.meta +33 -0
- package/Editor/MooseRunner.SessionRecorder.dll +0 -0
- package/Editor/MooseRunner.SessionRecorder.dll.meta +33 -0
- package/Editor/MooseRunner.Worker.dll +0 -0
- package/Editor/MooseRunner.Worker.dll.meta +33 -0
- package/Editor/_WrapperStub.cs +3 -0
- package/Editor/_WrapperStub.cs.meta +11 -0
- package/LICENSE.md +28 -0
- package/README.md +347 -0
- package/Runtime/Helpers/DoNotDestroyOnTeardown/DoNotDestroyOnTeardown.cs +262 -0
- package/Runtime/Helpers/DoNotDestroyOnTeardown/DoNotDestroyOnTeardown.cs.meta +2 -0
- package/Runtime/Helpers/DoNotDestroyOnTeardown/MooseRunner.helper.asmdef +18 -0
- package/Runtime/Helpers/DoNotDestroyOnTeardown/MooseRunner.helper.asmdef.meta +7 -0
- package/Runtime/MooseRunner.Helpers.Runtime.dll +0 -0
- package/Runtime/MooseRunner.Helpers.Runtime.dll.meta +27 -0
- package/Runtime/MooseRunner.Internal.dll +0 -0
- package/Runtime/MooseRunner.Internal.dll.meta +27 -0
- package/Runtime/MooseRunner.Multiplaytest.Types.dll +0 -0
- package/Runtime/MooseRunner.Multiplaytest.Types.dll.meta +27 -0
- package/Runtime/MooseRunner.Runtime.asmdef +20 -0
- package/Runtime/MooseRunner.Runtime.asmdef.meta +7 -0
- package/Runtime/MooseRunner.SessionRecorder.Runtime.dll +0 -0
- package/Runtime/MooseRunner.SessionRecorder.Runtime.dll.meta +27 -0
- package/Runtime/MooseRunner.dll +0 -0
- package/Runtime/MooseRunner.dll.meta +27 -0
- package/Runtime/_WrapperStub.cs +3 -0
- package/Runtime/_WrapperStub.cs.meta +11 -0
- package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/BatchCancellationTests.cs +37 -0
- package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/BatchCancellationTests.cs.meta +2 -0
- package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/CancellationTokenTests.cs +186 -0
- package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/CancellationTokenTests.cs.meta +2 -0
- package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/MooseRunner.Demo.CancellationTokens.Tests.asmdef +28 -0
- package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/MooseRunner.Demo.CancellationTokens.Tests.asmdef.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/SetupTeardownCancellationTests.cs +84 -0
- package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/SetupTeardownCancellationTests.cs.meta +2 -0
- package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/TESTING_INSTRUCTIONS.md +491 -0
- package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/TESTING_INSTRUCTIONS.md.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.ErrorHandling.Tests/ErrorHandelingTest.cs +177 -0
- package/Samples~/Demos/MooseRunner.Demo.ErrorHandling.Tests/ErrorHandelingTest.cs.meta +11 -0
- package/Samples~/Demos/MooseRunner.Demo.ErrorHandling.Tests/MooseRunner.Demo.ErrorHandling.Tests.asmdef +28 -0
- package/Samples~/Demos/MooseRunner.Demo.ErrorHandling.Tests/MooseRunner.Demo.ErrorHandling.Tests.asmdef.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/LogEntry.cs +51 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/LogEntry.cs.meta +11 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/LogFileParser.cs +70 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/LogFileParser.cs.meta +11 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/MooseRunner.Demo.Flow.TestSupport.asmdef +22 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/MooseRunner.Demo.Flow.TestSupport.asmdef.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/MooseRunnerLogReference.json +62 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/MooseRunnerLogReference.json.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/MooseRunnerLogReference_2.json +33 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/MooseRunnerLogReference_2.json.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/MooseRunnerLogReference_No_UniTask.json +57 -0
- package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/MooseRunnerLogReference_No_UniTask.json.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.OrderAttribute/MethodOrderAttributeTests.cs +62 -0
- package/Samples~/Demos/MooseRunner.Demo.OrderAttribute/MethodOrderAttributeTests.cs.meta +2 -0
- package/Samples~/Demos/MooseRunner.Demo.OrderAttribute/MooseRunner.Demo.OrderAttribute.asmdef +20 -0
- package/Samples~/Demos/MooseRunner.Demo.OrderAttribute/MooseRunner.Demo.OrderAttribute.asmdef.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/CatAnimation.controller +276 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/CatAnimation.controller.meta +8 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/Enemy.cs +101 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/Enemy.cs.meta +11 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/FireComponent.cs +19 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/FireComponent.cs.meta +3 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/Model/Ghost_cat.fbx +0 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/Model/Ghost_cat.fbx.meta +547 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/Model.meta +8 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/MooseRunner.Demo.RealUseCase.asmdef +29 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/MooseRunner.Demo.RealUseCase.asmdef.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/RealUseCaseScene.unity +4758 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/RealUseCaseScene.unity.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/RealUseCaseTest.cs +307 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/RealUseCaseTest.cs.meta +3 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/Resources/Ghost_cat.prefab +157 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/Resources/Ghost_cat.prefab.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.RealUseCase/Resources.meta +8 -0
- package/Samples~/Demos/MooseRunner.Demo.Support/MessageDisplayManager.cs +291 -0
- package/Samples~/Demos/MooseRunner.Demo.Support/MessageDisplayManager.cs.meta +11 -0
- package/Samples~/Demos/MooseRunner.Demo.Support/MooseRunner.Demo.Support.asmdef +19 -0
- package/Samples~/Demos/MooseRunner.Demo.Support/MooseRunner.Demo.Support.asmdef.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/DummyTestBase1.cs +71 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/DummyTestBase1.cs.meta +11 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/DummyTestClass1.cs +301 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/DummyTestClass1.cs.meta +11 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/DummyTestClass2.cs +69 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/DummyTestClass2.cs.meta +11 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/ExplicitAttributeTests.cs +36 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/ExplicitAttributeTests.cs.meta +2 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/HumanReviewModeDemo.cs +99 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/HumanReviewModeDemo.cs.meta +2 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/InstanceHandlingVerificationTest.cs +99 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/InstanceHandlingVerificationTest.cs.meta +2 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/MooseRunner.Demo.Tests.asmdef +23 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/MooseRunner.Demo.Tests.asmdef.meta +7 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/PauseTestExecutionDemo.cs +74 -0
- package/Samples~/Demos/MooseRunner.Demo.Tests/PauseTestExecutionDemo.cs.meta +2 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/Background.mat +137 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/Background.mat.meta +8 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/Background.png +0 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/Background.png.meta +127 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/Grid.mat +71 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/Grid.mat.meta +8 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/Grid.png +0 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/Grid.png.meta +127 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/Grid.shadergraph +1910 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/Grid.shadergraph.meta +10 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/GridNormal.png +0 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials/GridNormal.png.meta +127 -0
- package/Samples~/Demos/TestResources/OneCamera/Materials.meta +8 -0
- package/Samples~/Demos/TestResources/OneCamera/OneCameraScene.unity +598 -0
- package/Samples~/Demos/TestResources/OneCamera/OneCameraScene.unity.meta +7 -0
- package/Samples~/Demos/TestResources/OneCamera.meta +8 -0
- package/Third Party Notices.md +37 -0
- package/package.json +38 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!1102 &-6210735791947704313
|
|
4
|
+
AnimatorState:
|
|
5
|
+
serializedVersion: 6
|
|
6
|
+
m_ObjectHideFlags: 1
|
|
7
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
8
|
+
m_PrefabInstance: {fileID: 0}
|
|
9
|
+
m_PrefabAsset: {fileID: 0}
|
|
10
|
+
m_Name: Locomotion
|
|
11
|
+
m_Speed: 1
|
|
12
|
+
m_CycleOffset: 0
|
|
13
|
+
m_Transitions:
|
|
14
|
+
- {fileID: 9014110136639271189}
|
|
15
|
+
- {fileID: 2978094184868494924}
|
|
16
|
+
m_StateMachineBehaviours: []
|
|
17
|
+
m_Position: {x: 50, y: 50, z: 0}
|
|
18
|
+
m_IKOnFeet: 0
|
|
19
|
+
m_WriteDefaultValues: 1
|
|
20
|
+
m_Mirror: 0
|
|
21
|
+
m_SpeedParameterActive: 0
|
|
22
|
+
m_MirrorParameterActive: 0
|
|
23
|
+
m_CycleOffsetParameterActive: 0
|
|
24
|
+
m_TimeParameterActive: 0
|
|
25
|
+
m_Motion: {fileID: 1906698926690877393}
|
|
26
|
+
m_Tag:
|
|
27
|
+
m_SpeedParameter:
|
|
28
|
+
m_MirrorParameter:
|
|
29
|
+
m_CycleOffsetParameter:
|
|
30
|
+
m_TimeParameter:
|
|
31
|
+
--- !u!1107 &-3946411560155179862
|
|
32
|
+
AnimatorStateMachine:
|
|
33
|
+
serializedVersion: 6
|
|
34
|
+
m_ObjectHideFlags: 1
|
|
35
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
36
|
+
m_PrefabInstance: {fileID: 0}
|
|
37
|
+
m_PrefabAsset: {fileID: 0}
|
|
38
|
+
m_Name: Base Layer
|
|
39
|
+
m_ChildStates:
|
|
40
|
+
- serializedVersion: 1
|
|
41
|
+
m_State: {fileID: -6210735791947704313}
|
|
42
|
+
m_Position: {x: 430, y: 20, z: 0}
|
|
43
|
+
- serializedVersion: 1
|
|
44
|
+
m_State: {fileID: -1721407327708824991}
|
|
45
|
+
m_Position: {x: 220, y: -50, z: 0}
|
|
46
|
+
- serializedVersion: 1
|
|
47
|
+
m_State: {fileID: 6035468755691371766}
|
|
48
|
+
m_Position: {x: 550, y: 180, z: 0}
|
|
49
|
+
m_ChildStateMachines: []
|
|
50
|
+
m_AnyStateTransitions: []
|
|
51
|
+
m_EntryTransitions: []
|
|
52
|
+
m_StateMachineTransitions: {}
|
|
53
|
+
m_StateMachineBehaviours: []
|
|
54
|
+
m_AnyStatePosition: {x: 50, y: 20, z: 0}
|
|
55
|
+
m_EntryPosition: {x: 50, y: 120, z: 0}
|
|
56
|
+
m_ExitPosition: {x: 800, y: 120, z: 0}
|
|
57
|
+
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
|
58
|
+
m_DefaultState: {fileID: -6210735791947704313}
|
|
59
|
+
--- !u!1102 &-1721407327708824991
|
|
60
|
+
AnimatorState:
|
|
61
|
+
serializedVersion: 6
|
|
62
|
+
m_ObjectHideFlags: 1
|
|
63
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
64
|
+
m_PrefabInstance: {fileID: 0}
|
|
65
|
+
m_PrefabAsset: {fileID: 0}
|
|
66
|
+
m_Name: Damage
|
|
67
|
+
m_Speed: 1
|
|
68
|
+
m_CycleOffset: 0
|
|
69
|
+
m_Transitions:
|
|
70
|
+
- {fileID: 7853715688249190301}
|
|
71
|
+
m_StateMachineBehaviours: []
|
|
72
|
+
m_Position: {x: 50, y: 50, z: 0}
|
|
73
|
+
m_IKOnFeet: 0
|
|
74
|
+
m_WriteDefaultValues: 1
|
|
75
|
+
m_Mirror: 0
|
|
76
|
+
m_SpeedParameterActive: 0
|
|
77
|
+
m_MirrorParameterActive: 0
|
|
78
|
+
m_CycleOffsetParameterActive: 0
|
|
79
|
+
m_TimeParameterActive: 0
|
|
80
|
+
m_Motion: {fileID: 772023809631997582, guid: 11f102f6c7bba8348be5b03d99bb9022, type: 3}
|
|
81
|
+
m_Tag:
|
|
82
|
+
m_SpeedParameter:
|
|
83
|
+
m_MirrorParameter:
|
|
84
|
+
m_CycleOffsetParameter:
|
|
85
|
+
m_TimeParameter:
|
|
86
|
+
--- !u!91 &9100000
|
|
87
|
+
AnimatorController:
|
|
88
|
+
m_ObjectHideFlags: 0
|
|
89
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
90
|
+
m_PrefabInstance: {fileID: 0}
|
|
91
|
+
m_PrefabAsset: {fileID: 0}
|
|
92
|
+
m_Name: CatAnimation
|
|
93
|
+
serializedVersion: 5
|
|
94
|
+
m_AnimatorParameters:
|
|
95
|
+
- m_Name: Speed
|
|
96
|
+
m_Type: 1
|
|
97
|
+
m_DefaultFloat: 0
|
|
98
|
+
m_DefaultInt: 0
|
|
99
|
+
m_DefaultBool: 0
|
|
100
|
+
m_Controller: {fileID: 9100000}
|
|
101
|
+
- m_Name: Dead
|
|
102
|
+
m_Type: 9
|
|
103
|
+
m_DefaultFloat: 0
|
|
104
|
+
m_DefaultInt: 0
|
|
105
|
+
m_DefaultBool: 0
|
|
106
|
+
m_Controller: {fileID: 9100000}
|
|
107
|
+
- m_Name: Damage
|
|
108
|
+
m_Type: 9
|
|
109
|
+
m_DefaultFloat: 0
|
|
110
|
+
m_DefaultInt: 0
|
|
111
|
+
m_DefaultBool: 0
|
|
112
|
+
m_Controller: {fileID: 9100000}
|
|
113
|
+
m_AnimatorLayers:
|
|
114
|
+
- serializedVersion: 5
|
|
115
|
+
m_Name: Base Layer
|
|
116
|
+
m_StateMachine: {fileID: -3946411560155179862}
|
|
117
|
+
m_Mask: {fileID: 0}
|
|
118
|
+
m_Motions: []
|
|
119
|
+
m_Behaviours: []
|
|
120
|
+
m_BlendingMode: 0
|
|
121
|
+
m_SyncedLayerIndex: -1
|
|
122
|
+
m_DefaultWeight: 0
|
|
123
|
+
m_IKPass: 0
|
|
124
|
+
m_SyncedLayerAffectsTiming: 0
|
|
125
|
+
m_Controller: {fileID: 9100000}
|
|
126
|
+
--- !u!206 &1906698926690877393
|
|
127
|
+
BlendTree:
|
|
128
|
+
m_ObjectHideFlags: 1
|
|
129
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
130
|
+
m_PrefabInstance: {fileID: 0}
|
|
131
|
+
m_PrefabAsset: {fileID: 0}
|
|
132
|
+
m_Name: Blend Tree
|
|
133
|
+
m_Childs:
|
|
134
|
+
- serializedVersion: 2
|
|
135
|
+
m_Motion: {fileID: -5252816984213320552, guid: 11f102f6c7bba8348be5b03d99bb9022,
|
|
136
|
+
type: 3}
|
|
137
|
+
m_Threshold: 0.69993806
|
|
138
|
+
m_Position: {x: 0, y: 0}
|
|
139
|
+
m_TimeScale: 1
|
|
140
|
+
m_CycleOffset: 0
|
|
141
|
+
m_DirectBlendParameter: Speed
|
|
142
|
+
m_Mirror: 0
|
|
143
|
+
- serializedVersion: 2
|
|
144
|
+
m_Motion: {fileID: -3419257869308726280, guid: 11f102f6c7bba8348be5b03d99bb9022,
|
|
145
|
+
type: 3}
|
|
146
|
+
m_Threshold: 0.7930805
|
|
147
|
+
m_Position: {x: 0, y: 0}
|
|
148
|
+
m_TimeScale: 1
|
|
149
|
+
m_CycleOffset: 0
|
|
150
|
+
m_DirectBlendParameter: Speed
|
|
151
|
+
m_Mirror: 0
|
|
152
|
+
m_BlendParameter: Speed
|
|
153
|
+
m_BlendParameterY: Blend
|
|
154
|
+
m_MinThreshold: 0.69993806
|
|
155
|
+
m_MaxThreshold: 0.7930805
|
|
156
|
+
m_UseAutomaticThresholds: 0
|
|
157
|
+
m_NormalizedBlendValues: 0
|
|
158
|
+
m_BlendType: 0
|
|
159
|
+
--- !u!1101 &2978094184868494924
|
|
160
|
+
AnimatorStateTransition:
|
|
161
|
+
m_ObjectHideFlags: 1
|
|
162
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
163
|
+
m_PrefabInstance: {fileID: 0}
|
|
164
|
+
m_PrefabAsset: {fileID: 0}
|
|
165
|
+
m_Name:
|
|
166
|
+
m_Conditions:
|
|
167
|
+
- m_ConditionMode: 1
|
|
168
|
+
m_ConditionEvent: Dead
|
|
169
|
+
m_EventTreshold: 0
|
|
170
|
+
m_DstStateMachine: {fileID: 0}
|
|
171
|
+
m_DstState: {fileID: 6035468755691371766}
|
|
172
|
+
m_Solo: 0
|
|
173
|
+
m_Mute: 0
|
|
174
|
+
m_IsExit: 0
|
|
175
|
+
serializedVersion: 3
|
|
176
|
+
m_TransitionDuration: 0
|
|
177
|
+
m_TransitionOffset: 0
|
|
178
|
+
m_ExitTime: 1
|
|
179
|
+
m_HasExitTime: 0
|
|
180
|
+
m_HasFixedDuration: 1
|
|
181
|
+
m_InterruptionSource: 0
|
|
182
|
+
m_OrderedInterruption: 1
|
|
183
|
+
m_CanTransitionToSelf: 1
|
|
184
|
+
--- !u!1102 &6035468755691371766
|
|
185
|
+
AnimatorState:
|
|
186
|
+
serializedVersion: 6
|
|
187
|
+
m_ObjectHideFlags: 1
|
|
188
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
189
|
+
m_PrefabInstance: {fileID: 0}
|
|
190
|
+
m_PrefabAsset: {fileID: 0}
|
|
191
|
+
m_Name: Dying
|
|
192
|
+
m_Speed: 1
|
|
193
|
+
m_CycleOffset: 0
|
|
194
|
+
m_Transitions: []
|
|
195
|
+
m_StateMachineBehaviours: []
|
|
196
|
+
m_Position: {x: 50, y: 50, z: 0}
|
|
197
|
+
m_IKOnFeet: 0
|
|
198
|
+
m_WriteDefaultValues: 1
|
|
199
|
+
m_Mirror: 0
|
|
200
|
+
m_SpeedParameterActive: 0
|
|
201
|
+
m_MirrorParameterActive: 0
|
|
202
|
+
m_CycleOffsetParameterActive: 0
|
|
203
|
+
m_TimeParameterActive: 0
|
|
204
|
+
m_Motion: {fileID: -2343641868178226514, guid: 11f102f6c7bba8348be5b03d99bb9022,
|
|
205
|
+
type: 3}
|
|
206
|
+
m_Tag: Dying
|
|
207
|
+
m_SpeedParameter:
|
|
208
|
+
m_MirrorParameter:
|
|
209
|
+
m_CycleOffsetParameter:
|
|
210
|
+
m_TimeParameter:
|
|
211
|
+
--- !u!1107 &7486989183792475301
|
|
212
|
+
AnimatorStateMachine:
|
|
213
|
+
serializedVersion: 6
|
|
214
|
+
m_ObjectHideFlags: 1
|
|
215
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
216
|
+
m_PrefabInstance: {fileID: 0}
|
|
217
|
+
m_PrefabAsset: {fileID: 0}
|
|
218
|
+
m_Name: New Layer
|
|
219
|
+
m_ChildStates: []
|
|
220
|
+
m_ChildStateMachines: []
|
|
221
|
+
m_AnyStateTransitions: []
|
|
222
|
+
m_EntryTransitions: []
|
|
223
|
+
m_StateMachineTransitions: {}
|
|
224
|
+
m_StateMachineBehaviours: []
|
|
225
|
+
m_AnyStatePosition: {x: 50, y: 20, z: 0}
|
|
226
|
+
m_EntryPosition: {x: 50, y: 120, z: 0}
|
|
227
|
+
m_ExitPosition: {x: 800, y: 120, z: 0}
|
|
228
|
+
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
|
229
|
+
m_DefaultState: {fileID: 0}
|
|
230
|
+
--- !u!1101 &7853715688249190301
|
|
231
|
+
AnimatorStateTransition:
|
|
232
|
+
m_ObjectHideFlags: 1
|
|
233
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
234
|
+
m_PrefabInstance: {fileID: 0}
|
|
235
|
+
m_PrefabAsset: {fileID: 0}
|
|
236
|
+
m_Name:
|
|
237
|
+
m_Conditions: []
|
|
238
|
+
m_DstStateMachine: {fileID: 0}
|
|
239
|
+
m_DstState: {fileID: -6210735791947704313}
|
|
240
|
+
m_Solo: 0
|
|
241
|
+
m_Mute: 0
|
|
242
|
+
m_IsExit: 0
|
|
243
|
+
serializedVersion: 3
|
|
244
|
+
m_TransitionDuration: 0
|
|
245
|
+
m_TransitionOffset: 0
|
|
246
|
+
m_ExitTime: 1
|
|
247
|
+
m_HasExitTime: 1
|
|
248
|
+
m_HasFixedDuration: 1
|
|
249
|
+
m_InterruptionSource: 0
|
|
250
|
+
m_OrderedInterruption: 1
|
|
251
|
+
m_CanTransitionToSelf: 1
|
|
252
|
+
--- !u!1101 &9014110136639271189
|
|
253
|
+
AnimatorStateTransition:
|
|
254
|
+
m_ObjectHideFlags: 1
|
|
255
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
256
|
+
m_PrefabInstance: {fileID: 0}
|
|
257
|
+
m_PrefabAsset: {fileID: 0}
|
|
258
|
+
m_Name:
|
|
259
|
+
m_Conditions:
|
|
260
|
+
- m_ConditionMode: 1
|
|
261
|
+
m_ConditionEvent: Damage
|
|
262
|
+
m_EventTreshold: 0
|
|
263
|
+
m_DstStateMachine: {fileID: 0}
|
|
264
|
+
m_DstState: {fileID: -1721407327708824991}
|
|
265
|
+
m_Solo: 0
|
|
266
|
+
m_Mute: 0
|
|
267
|
+
m_IsExit: 0
|
|
268
|
+
serializedVersion: 3
|
|
269
|
+
m_TransitionDuration: 0
|
|
270
|
+
m_TransitionOffset: 0
|
|
271
|
+
m_ExitTime: 1
|
|
272
|
+
m_HasExitTime: 0
|
|
273
|
+
m_HasFixedDuration: 1
|
|
274
|
+
m_InterruptionSource: 0
|
|
275
|
+
m_OrderedInterruption: 1
|
|
276
|
+
m_CanTransitionToSelf: 1
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
using UnityEngine;
|
|
2
|
+
|
|
3
|
+
namespace MooseRunner.Internal.Tests
|
|
4
|
+
{
|
|
5
|
+
/// <summary>
|
|
6
|
+
/// Represents an enemy that uses physics-based movement instead of root motion.
|
|
7
|
+
/// The Animator's "speed" parameter is still used to control animations.
|
|
8
|
+
/// </summary>
|
|
9
|
+
[RequireComponent(typeof(Rigidbody), typeof(Animator))]
|
|
10
|
+
public class Enemy : MonoBehaviour
|
|
11
|
+
{
|
|
12
|
+
/// <summary>
|
|
13
|
+
/// The Rigidbody component for handling physics-based interactions.
|
|
14
|
+
/// </summary>
|
|
15
|
+
private Rigidbody _rb;
|
|
16
|
+
|
|
17
|
+
/// <summary>
|
|
18
|
+
/// The Animator component responsible for controlling animations.
|
|
19
|
+
/// </summary>
|
|
20
|
+
private Animator _animator;
|
|
21
|
+
|
|
22
|
+
/// <summary>
|
|
23
|
+
/// Specifies the forward movement speed of the enemy.
|
|
24
|
+
/// </summary>
|
|
25
|
+
public float moveSpeed = 1f;
|
|
26
|
+
|
|
27
|
+
/// <summary>
|
|
28
|
+
/// Controls whether the enemy is allowed to move forward using physics.
|
|
29
|
+
/// </summary>
|
|
30
|
+
public bool moveForward;
|
|
31
|
+
|
|
32
|
+
/// <summary>
|
|
33
|
+
/// Initializes the Animator and Rigidbody components and sets up their behavior.
|
|
34
|
+
/// </summary>
|
|
35
|
+
private void Start()
|
|
36
|
+
{
|
|
37
|
+
// Get Rigidbody and Animator components
|
|
38
|
+
_rb = GetComponent<Rigidbody>();
|
|
39
|
+
_animator = GetComponent<Animator>();
|
|
40
|
+
|
|
41
|
+
// Configure Rigidbody constraints
|
|
42
|
+
_rb.useGravity = true; // Enable gravity
|
|
43
|
+
_rb.constraints = RigidbodyConstraints.FreezeRotation; // Prevent unwanted rotation
|
|
44
|
+
|
|
45
|
+
_rb.mass = 1f;
|
|
46
|
+
|
|
47
|
+
// Disable root motion since we are using physics-based movement
|
|
48
|
+
_animator.applyRootMotion = false;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/// <summary>
|
|
52
|
+
/// Updates the animation state based on movement input.
|
|
53
|
+
/// </summary>
|
|
54
|
+
private void Update()
|
|
55
|
+
{
|
|
56
|
+
// Update the "speed" parameter in the Animator (1 = move, 0 = stationary)
|
|
57
|
+
_animator.SetFloat("Speed", moveForward ? 1f : 0f);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/// <summary>
|
|
61
|
+
/// Handles physics-based movement in FixedUpdate.
|
|
62
|
+
/// </summary>
|
|
63
|
+
private void FixedUpdate()
|
|
64
|
+
{
|
|
65
|
+
if (moveForward)
|
|
66
|
+
{
|
|
67
|
+
// Apply forward velocity in the local Z-axis (character's forward direction)
|
|
68
|
+
Vector3 forwardMovement = transform.forward * moveSpeed;
|
|
69
|
+
_rb.linearVelocity = new Vector3(forwardMovement.x, _rb.linearVelocity.y, forwardMovement.z);
|
|
70
|
+
}
|
|
71
|
+
else
|
|
72
|
+
{
|
|
73
|
+
// Stop horizontal movement when stationary
|
|
74
|
+
_rb.linearVelocity = new Vector3(0, _rb.linearVelocity.y, 0);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (transform.position.y < -4)
|
|
78
|
+
{
|
|
79
|
+
Destroy(this.gameObject);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
public void KillEnemy()
|
|
84
|
+
{
|
|
85
|
+
// Get the player's Animator component for the death animation
|
|
86
|
+
Animator animator = GetComponent<Animator>();
|
|
87
|
+
if (animator != null)
|
|
88
|
+
{
|
|
89
|
+
animator.SetTrigger("Dead"); // Trigger "Die" animation
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Stop the character to see where it ended up.
|
|
93
|
+
moveForward = false;
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
// Optionally deactivate or destroy the player object after collision
|
|
97
|
+
Destroy(this.gameObject, 5.0f);
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
using UnityEngine;
|
|
2
|
+
|
|
3
|
+
namespace MooseRunner.Internal.Tests
|
|
4
|
+
{
|
|
5
|
+
public class FireComponent : MonoBehaviour
|
|
6
|
+
{
|
|
7
|
+
// This method will be called when another object collides with this object
|
|
8
|
+
private void OnCollisionEnter(Collision collision)
|
|
9
|
+
{
|
|
10
|
+
// Check if the colliding object has an "Enemy" component
|
|
11
|
+
Enemy enemy = collision.gameObject.GetComponent<Enemy>();
|
|
12
|
+
|
|
13
|
+
if (enemy != null)
|
|
14
|
+
{
|
|
15
|
+
enemy.KillEnemy();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
Binary file
|