com.valectric.mooserunner 2.1.21 → 2.1.23

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +23 -23
  2. package/CLI~/mooserunnerCli.exe +0 -0
  3. package/CLI~/mooserunnerCliDaemon.exe +0 -0
  4. package/Editor/HotReloadIntegration/MooseRunner.HotReloadIntegration.dll +0 -0
  5. package/Editor/HotReloadIntegration/MooseRunner.HotReloadIntegration.dll.meta +32 -32
  6. package/Editor/MooseRunner.Editor.asmdef +15 -15
  7. package/Editor/MooseRunner.Editor.asmdef.meta +6 -6
  8. package/Editor/MooseRunner.Internal.Editor.dll +0 -0
  9. package/Editor/MooseRunner.Internal.Editor.dll.meta +32 -32
  10. package/Editor/MooseRunner.Worker.dll +0 -0
  11. package/Editor/MooseRunner.Worker.dll.meta +32 -32
  12. package/Editor/SessionRecorder/MooseRunner.SessionRecorder.dll +0 -0
  13. package/Editor/SessionRecorder/MooseRunner.SessionRecorder.dll.meta +32 -32
  14. package/Editor/_WrapperStub.cs.meta +10 -10
  15. package/LICENSE.md +28 -28
  16. package/Runtime/MooseRunner.Helpers.Runtime.dll +0 -0
  17. package/Runtime/MooseRunner.Helpers.Runtime.dll.meta +26 -26
  18. package/Runtime/MooseRunner.Internal.dll +0 -0
  19. package/Runtime/MooseRunner.Internal.dll.meta +26 -26
  20. package/Runtime/MooseRunner.Multiplaytest.Types.dll +0 -0
  21. package/Runtime/MooseRunner.Multiplaytest.Types.dll.meta +26 -26
  22. package/Runtime/MooseRunner.Runtime.asmdef +15 -15
  23. package/Runtime/MooseRunner.Runtime.asmdef.meta +6 -6
  24. package/Runtime/MooseRunner.SessionRecorder.Public.dll +0 -0
  25. package/Runtime/MooseRunner.SessionRecorder.Public.dll.meta +26 -26
  26. package/Runtime/MooseRunner.SessionRecorder.Runtime.dll +0 -0
  27. package/Runtime/MooseRunner.SessionRecorder.Runtime.dll.meta +26 -26
  28. package/Runtime/MooseRunner.dll +0 -0
  29. package/Runtime/MooseRunner.dll.meta +26 -26
  30. package/Runtime/_WrapperStub.cs.meta +10 -10
  31. package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/BatchCancellationTests.cs +37 -37
  32. package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/CancellationTokenTests.cs +186 -186
  33. package/Samples~/Demos/MooseRunner.Demo.CancellationTokens.Tests/SetupTeardownCancellationTests.cs +85 -85
  34. package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/LogEntry.cs +51 -51
  35. package/Samples~/Demos/MooseRunner.Demo.Flow.TestSupport/LogFileParser.cs +69 -69
  36. package/Samples~/Demos/MooseRunner.Demo.OrderAttribute/MethodOrderAttributeTests.cs +62 -62
  37. package/Samples~/Demos/MooseRunner.Demo.RealUseCase/Enemy.cs +100 -100
  38. package/Samples~/Demos/MooseRunner.Demo.RealUseCase/FireComponent.cs +18 -18
  39. package/Samples~/Demos/MooseRunner.Demo.Support/MessageDisplayManager.cs +291 -291
  40. package/Samples~/Demos/MooseRunner.Demo.Support/MooseRunnerSampleVersionCheck.cs +57 -57
  41. package/Samples~/Demos/MooseRunner.Demo.Support/MooseRunnerSampleVersionCheck.cs.meta +1 -1
  42. package/Samples~/Demos/MooseRunner.Demo.Tests/ExplicitAttributeTests.cs +36 -36
  43. package/Samples~/Demos/MooseRunner.Demo.Tests/InstanceHandlingVerificationTest.cs +99 -99
  44. package/Third Party Notices.md +37 -37
  45. package/package.json +1 -1
@@ -1,101 +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
- }
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
101
  }
@@ -1,19 +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
- }
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
19
  }