Ejemplo n.º 1
0
 public override void Unity_Deserialize(int depth)
 {
     if (depth <= 7)
     {
         this.audioClip = (SerializedStateReader.Instance.ReadUnityEngineObject() as AudioClip);
     }
     this.trigger = (UIPlaySound.Trigger)SerializedStateReader.Instance.ReadInt32();
     this.volume  = SerializedStateReader.Instance.ReadSingle();
     this.pitch   = SerializedStateReader.Instance.ReadSingle();
 }
Ejemplo n.º 2
0
    public unsafe override void Unity_NamedDeserialize(int depth)
    {
        byte[] var_0_cp_0;
        int    var_0_cp_1;

        if (depth <= 7)
        {
            ISerializedNamedStateReader arg_1E_0 = SerializedNamedStateReader.Instance;
            var_0_cp_0     = $FieldNamesStorage.$RuntimeNames;
            var_0_cp_1     = 0;
            this.audioClip = (arg_1E_0.ReadUnityEngineObject(&var_0_cp_0[var_0_cp_1] + 1196) as AudioClip);
        }
        this.trigger = (UIPlaySound.Trigger)SerializedNamedStateReader.Instance.ReadInt32(&var_0_cp_0[var_0_cp_1] + 415);
        this.volume  = SerializedNamedStateReader.Instance.ReadSingle(&var_0_cp_0[var_0_cp_1] + 1206);
        this.pitch   = SerializedNamedStateReader.Instance.ReadSingle(&var_0_cp_0[var_0_cp_1] + 1213);
    }