/// <summary> /// Bone type setup /// </summary> /// <param name="componentName"></param> /// <param name="boneSearch"></param> /// <param name="max"></param> /// <param name="usePos"></param> /// <param name="useRot"></param> /// <param name="useScl"></param> /// <param name="durOn"></param> /// <param name="durHold"></param> /// <param name="durOff"></param> /// <param name="type"></param> public OneClickComponent(string componentName, string boneSearch, TformBase max, bool usePos, bool useRot, bool useScl, float durOn, float durHold, float durOff, ComponentType type) { this.boneSearch = boneSearch; this.componentName = componentName; this.max = max; this.usePos = usePos; this.useRot = useRot; this.useScl = useScl; this.durOn = durOn; this.durHold = durHold; this.durOff = durOff; this.type = type; }
protected static void AddBoneComponent(string componentSearchName, TformBase maxTform, float durOn, float durHold, float durOff, string componentName = "", bool constrainPos = false, bool constrainRot = true, bool constrainScl = false) { var currentConfigExpression = currentConfiguration.oneClickExpressions[currentConfiguration.oneClickExpressions.Count - 1]; currentConfigExpression.components.Add(new OneClickBoneComponent(componentName, componentSearchName, maxTform, constrainPos, constrainRot, constrainScl, durOn, durHold, durOff, OneClickComponent.ComponentType.Bone)); }