void PickNextFunction() { function = FunctionLibrary.GetNextFunctionName(function); if (transitionMode == TransitionMode.Random) { function = FunctionLibrary.GetRandomFunctionNameOtherThan(function); } }
private void PickNextFunction() { function = transitionMode == TransitionMode.Cycle ? FunctionLibrary.GetNextFunctionName(function) : FunctionLibrary.GetRandomFunctionNameOtherThan(function); }
private FunctionLibrary.FunctionName PickNextFunction() { return(transitionMode == TransitionMode.Cycle ? FunctionLibrary.GetNextFunctionNames(targetFunction) : FunctionLibrary.GetRandomFunctionNameOtherThan(targetFunction)); }