Exemplo n.º 1
0
 public AudioCurveWrapper(AudioCurveType type, string legend, int id, Color color, SerializedProperty curveProp, float rangeMin, float rangeMax)
 {
     this.type      = type;
     this.legend    = new GUIContent(legend);
     this.id        = id;
     this.color     = color;
     this.curveProp = curveProp;
     this.rangeMin  = rangeMin;
     this.rangeMax  = rangeMax;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Read the file.
        /// </summary>
        /// <param name="br">The reader.</param>
        public override void Read(BinaryDataReader br)
        {
            //Read the header.
            ReadMagic(br);
            ReadByteOrder(br);
            ReadVersion(br);

            //Read data.
            AudioCurveType       = (AudioCurveType)br.ReadUInt32();
            StartValue           = br.ReadSingle();
            EndValue             = br.ReadSingle();
            HoldDistance         = br.ReadSingle();
            UnitDistance         = br.ReadSingle();
            DecayRation          = br.ReadSingle();
            CullingStartDistance = br.ReadSingle();
        }