public FitnessComponentDefinition(FitnessComponentType type, FitnessComponentMeasure measure, float weight, bool biggerIsBetter) { this.type = type; this.measure = measure; this.weight = weight; this.biggerIsBetter = biggerIsBetter; }
public void ClickCycleComponentType() { int numType = System.Enum.GetNames(typeof(FitnessComponentType)).Length; int curType = (int)newComponentType; // currentFitnessManagerRef.pendingFitnessComponentDefinitions[fitnessIndex].measure; int newType = curType + 1; if (newType >= numType) { newType = 0; } newComponentType = (FitnessComponentType)newType; buttonNewComponentType.GetComponentInChildren <Text>().text = newComponentType.ToString(); }