public xBoolData CreateXBoolData(string _varName, bool sincronizeAnimatorParameter, string variablePath, MonoBehaviour script) { var newXBoolData = new xBoolData(); newXBoolData.varName = _varName; newXBoolData.variablePath = variablePath; newXBoolData.script = script; newXBoolData.sincronizeAnimatorParameter = sincronizeAnimatorParameter; xBoolList = xBoolList.Add(newXBoolData); #if UNITY_EDITOR Debug.Log("New xbool created " + _varName + " animatorPrameter: " + sincronizeAnimatorParameter + " path: " + variablePath); #endif ResolveAnimatorBoolParameter(xBoolList.Length - 1, sincronizeAnimatorParameter, true); return(newXBoolData); }
public void Optimize() { x = xBrain.xBoolList[xIndex]; }