private string GetCurrentStateName() { StateComponent component = serializedObject.targetObject as StateComponent; if (component.CurrentState) { return($"<color=green>{component.CurrentState.name}</color>"); } else { return("<color=red>None</color>"); } }
public void UpdateState(StateComponent stateComponent) { foreach (var action in _stateActions) { if (action) { action.Act(stateComponent); } else { Debug.LogError($"[SCRIPTABLE STATE] {name}'s State Actions list has a null element", this); } } }
public abstract bool Verify(StateComponent statesComponent);
public abstract void Act(StateComponent statesComponent);