public void Load() { Defaults(); ExpressionControlMapping mapping = LoadMapping(ExpressionTargets[currentlyEditing]); if (mapping == null) { Save(); // Write defaults } else { for (int i = 0; i < mapping.indexes.Length; i++) { currentTargetValues[mapping.indexes[i]] = mapping.values[i]; currentUseControl[mapping.indexes[i]] = true; } } }
public ExpressionPlayerFaceTarget(string name, ExpressionControlMapping expressionControlMapping) { this.value = 0.0f; this.name = name; this.expressionControlMapping = expressionControlMapping; }