What I wish to achieve is similar to the functions that Unity has already provided for us, such as their Update functions. Where they must be called is already placed, and we define their tasks. However, it still carries out all definitions of that function. For additional context, I am writing a base script for player movement and would like to write state methods, if that makes sense. For example:
public class Example : MonoBehaviour {
if( grounded )
{
OnGroundedStay();
}
}
public class SeperateScript : MonoBehaviour {
void OnGroundedStay ()
{
//Perform unique tasks when we remain on the ground.
}
Thank your for your time, and I apologize for the bluntness of the explanation.