override protected int doTick(BevNodeInputParam input, BevNodeOutputParam output) { int isFinish = BRS_FINISH; if (checkIndex(_currentSelectedIndex)) { if (_currentSelectedIndex != _lastSelectedIndex) { if (checkIndex(_lastSelectedIndex)) { _children[_lastSelectedIndex].transition(input); } _lastSelectedIndex = _currentSelectedIndex; } } if (checkIndex(_lastSelectedIndex)) { isFinish = _children[_lastSelectedIndex].tick(input, output); if (isFinish == BRS_FINISH) { _lastSelectedIndex = -1; } } return(isFinish); }
override protected int doTick(BevNodeInputParam input, BevNodeOutputParam output) { int isFinish = BRS_FINISH; if (checkIndex(0)) { isFinish = _children[0].tick(input, output); if (isFinish == BRS_FINISH) { if (_loopCount == -1) { isFinish = BRS_EXECUTING; } else { ++_currentLoop; if (_currentLoop < _loopCount) { isFinish = BRS_EXECUTING; } } } } if (isFinish == BRS_FINISH) { _currentLoop = 0; } return(isFinish); }
override protected int doTick(BevNodeInputParam input, BevNodeOutputParam output) { int isFinish = BRS_FINISH; if (checkIndex(0)) { isFinish = _children[0].tick(input, output); if (isFinish == BRS_FINISH) { if (_loopCount == -1) isFinish = BRS_EXECUTING; else { ++_currentLoop; if (_currentLoop < _loopCount) isFinish = BRS_EXECUTING; } } } if (isFinish == BRS_FINISH) _currentLoop = 0; return isFinish; }
override protected int doTick(BevNodeInputParam input, BevNodeOutputParam output) { int isFinish = BRS_FINISH; if (checkIndex(_currentSelectedIndex)) { if (_currentSelectedIndex != _lastSelectedIndex) { if (checkIndex(_lastSelectedIndex)) { _children[_lastSelectedIndex].transition(input); } _lastSelectedIndex = _currentSelectedIndex; } } if (checkIndex(_lastSelectedIndex)) { isFinish = _children[_lastSelectedIndex].tick(input, output); if (isFinish == BRS_FINISH) _lastSelectedIndex = -1; } return isFinish; }
virtual protected int doTick(BevNodeInputParam input, BevNodeOutputParam output) { return BRS_FINISH; }
public int tick(BevNodeInputParam input, BevNodeOutputParam output) { return doTick(input, output); }
protected virtual EBevRunningState _DoTick(BevNodeInputParam inputParam, BevNodeOutputParam outputParam) { return(EBevRunningState.Finish); }
public EBevRunningState Tick(BevNodeInputParam inputParam, BevNodeOutputParam outputParam) { return(_DoTick(inputParam, outputParam)); }
protected virtual BevRunningStatus DoExcute(ref BevNodeInputParam input, BevNodeOutputParam output) { throw new NotImplementedException(); }
public int tick(BevNodeInputParam input, BevNodeOutputParam output) { return(doTick(input, output)); }
virtual protected int doTick(BevNodeInputParam input, BevNodeOutputParam output) { return(BRS_FINISH); }
protected virtual EBevRunningState _DoExecute(BevNodeInputParam input, BevNodeOutputParam output) { return(EBevRunningState.Finish); }
private BevRunningStatus DoTick(ref BevNodeInputParam input, ref BevNodeOutputParam output) { throw new NotImplementedException(); }
/// <summary> /// 更新方法,类似于Mono的Update() /// </summary> /// <param name="input"></param> /// <param name="output"></param> /// <returns></returns> BevRunningStatus Tick(ref BevNodeInputParam input, ref BevNodeOutputParam output) { return(DoTick(ref input, ref output)); }