void InitializeValue(AudioOption.Types type) { if (dynamicValue.IsArray || (dynamicValue.Type == DynamicValue.ValueTypes.Null && dynamicValue.Value == null)) { dynamicValue.Value = AudioOption.GetDefaultValue(type); } if (type == AudioOption.Types.VolumeScale || type == AudioOption.Types.PitchScale) { var data = audioOption.GetValue <Vector3>(); valueProperty.SetValue(data.x); timeProperty.SetValue(data.y); easeProperty.SetValue((TweenUtility.Ease)data.z); } else if (type == AudioOption.Types.FadeIn || type == AudioOption.Types.FadeOut) { var data = audioOption.GetValue <Vector2>(); valueProperty.SetValue(data.x); easeProperty.SetValue((TweenUtility.Ease)data.y); } else { valueProperty.SetValue(dynamicValue.Value); } }