public ActionInput(InputType t) { inputType = t; inputDirection = InputDirection.None; inputAngle = 0.0f; inputStrength = InputStrength.None; }
public ActionInput(InputType t, InputDirection d, InputStrength s) { inputType = t; inputDirection = d; inputAngle = DirectionToAngle(d); if (d == InputDirection.None) { inputStrength = InputStrength.None; } else { inputStrength = s; } }
public ActionInput(InputType t, float a, InputStrength s) { inputType = t; if (s == InputStrength.None) { inputDirection = InputDirection.None; inputAngle = 0.0f; } else { inputDirection = AngleToDirection(a); inputAngle = a; } inputStrength = s; }