public override IBTNode GetNextChildTask() { var i = mRandom ? AIUtility.GetRandomIndex(mExecIndex, mExecI) : mExecI; if (mRevert) { return(mChildren[mChildren.Length - 1 - i]); } else { return(mChildren[i]); } }
public override IBTNode GetNextChildTask() { var i = AIUtility.GetRandomIndex(mExecIndex, mExecI); return(mChildren[i]); }