@@ -36,7 +36,7 @@ public class StateMachineController : MonoBehaviour
3636 /// Jumps to a state via a JumpIn state using the JumpId to identify the JumpIn node.
3737 /// </summary>
3838 /// <param name="id">The JumpIn id of the destination JumpIn node</param>
39- public void JumpTo ( JumpId id )
39+ public virtual void JumpTo ( JumpId id )
4040 {
4141 _stateMachine ? . JumpTo ( id ) ;
4242 }
@@ -73,7 +73,7 @@ public virtual void Reset()
7373 /// <summary>
7474 /// Initializes the state machine when the script instance is being loaded.
7575 /// </summary>
76- public void Awake ( )
76+ public virtual void Awake ( )
7777 {
7878 CreateStateMachine ( ) ;
7979 _activated = _stateMachine != null ;
@@ -83,7 +83,7 @@ public void Awake()
8383 /// Starts the state machine if it has been activated.
8484 /// This is called on the frame when a script is enabled just before any of the Update methods are called the first time.
8585 /// </summary>
86- public void Start ( )
86+ public virtual void Start ( )
8787 {
8888 if ( ! _activated ) return ;
8989
@@ -96,7 +96,7 @@ public void Start()
9696 /// Updates the state machine if it has been activated.
9797 /// This is called every frame, if the MonoBehaviour is enabled.
9898 /// </summary>
99- public void Update ( )
99+ public virtual void Update ( )
100100 {
101101 if ( ! _activated ) return ;
102102 _stateMachine ? . Update ( ) ;
@@ -106,7 +106,7 @@ public void Update()
106106 /// Performs physics-based updates on the state machine if it has been activated.
107107 /// This is called every fixed framerate frame, if the MonoBehaviour is enabled.
108108 /// </summary>
109- public void FixedUpdate ( )
109+ public virtual void FixedUpdate ( )
110110 {
111111 if ( ! _activated ) return ;
112112 _stateMachine ? . FixedUpdate ( ) ;
@@ -115,7 +115,7 @@ public void FixedUpdate()
115115 /// <summary>
116116 /// Cleans up the state machine when the MonoBehaviour will be destroyed.
117117 /// </summary>
118- public void OnDestroy ( )
118+ public virtual void OnDestroy ( )
119119 {
120120 if ( ! _activated ) return ;
121121 _stateMachine ? . OnDestroy ( ) ;
0 commit comments