private void SetAction(ScholarAction action) { _action = action; _actionIndex = 0; _operation = _action.Operations[_actionIndex]; IsPaused = false; Debug.Log($"Setted New Action"); }
public void Reset() { if (IsExecuting) { Stop(); } IsExecuting = false; _action = null; _operation = null; }
private void NextOperation() { _actionIndex++; if (_actionIndex != _action.Operations.Count) { Debug.Log($"Getted Next Operation: \"{_action.Operations[_actionIndex]}\""); _operation = _action.Operations[_actionIndex]; ExecuteOperation(); } else { ActionDone(); } }