示例#1
0
 private void SetAction(ScholarAction action)
 {
     _action      = action;
     _actionIndex = 0;
     _operation   = _action.Operations[_actionIndex];
     IsPaused     = false;
     Debug.Log($"Setted New Action");
 }
示例#2
0
        public void Reset()
        {
            if (IsExecuting)
            {
                Stop();
            }

            IsExecuting = false;
            _action     = null;
            _operation  = null;
        }
示例#3
0
        private void NextOperation()
        {
            _actionIndex++;

            if (_actionIndex != _action.Operations.Count)
            {
                Debug.Log($"Getted Next Operation: \"{_action.Operations[_actionIndex]}\"");
                _operation = _action.Operations[_actionIndex];
                ExecuteOperation();
            }
            else
            {
                ActionDone();
            }
        }