Example #1
0
    public unsafe override void Unity_NamedDeserialize(int depth)
    {
        ISerializedNamedStateReader arg_1A_0 = SerializedNamedStateReader.Instance;

        byte[] var_0_cp_0 = $FieldNamesStorage.$RuntimeNames;
        int    var_0_cp_1 = 0;

        this.constraint = (UIKeyNavigation.Constraint)arg_1A_0.ReadInt32(&var_0_cp_0[var_0_cp_1] + 278);
        if (depth <= 7)
        {
            this.onUp = (SerializedNamedStateReader.Instance.ReadUnityEngineObject(&var_0_cp_0[var_0_cp_1] + 289) as GameObject);
        }
        if (depth <= 7)
        {
            this.onDown = (SerializedNamedStateReader.Instance.ReadUnityEngineObject(&var_0_cp_0[var_0_cp_1] + 294) as GameObject);
        }
        if (depth <= 7)
        {
            this.onLeft = (SerializedNamedStateReader.Instance.ReadUnityEngineObject(&var_0_cp_0[var_0_cp_1] + 301) as GameObject);
        }
        if (depth <= 7)
        {
            this.onRight = (SerializedNamedStateReader.Instance.ReadUnityEngineObject(&var_0_cp_0[var_0_cp_1] + 308) as GameObject);
        }
        if (depth <= 7)
        {
            this.onClick = (SerializedNamedStateReader.Instance.ReadUnityEngineObject(&var_0_cp_0[var_0_cp_1] + 257) as GameObject);
        }
        if (depth <= 7)
        {
            this.onTab = (SerializedNamedStateReader.Instance.ReadUnityEngineObject(&var_0_cp_0[var_0_cp_1] + 316) as GameObject);
        }
        this.startsSelected = SerializedNamedStateReader.Instance.ReadBoolean(&var_0_cp_0[var_0_cp_1] + 322);
        SerializedNamedStateReader.Instance.Align();
    }
Example #2
0
 public override void Unity_Deserialize(int depth)
 {
     this.constraint = (UIKeyNavigation.Constraint)SerializedStateReader.Instance.ReadInt32();
     if (depth <= 7)
     {
         this.onUp = (SerializedStateReader.Instance.ReadUnityEngineObject() as GameObject);
     }
     if (depth <= 7)
     {
         this.onDown = (SerializedStateReader.Instance.ReadUnityEngineObject() as GameObject);
     }
     if (depth <= 7)
     {
         this.onLeft = (SerializedStateReader.Instance.ReadUnityEngineObject() as GameObject);
     }
     if (depth <= 7)
     {
         this.onRight = (SerializedStateReader.Instance.ReadUnityEngineObject() as GameObject);
     }
     if (depth <= 7)
     {
         this.onClick = (SerializedStateReader.Instance.ReadUnityEngineObject() as GameObject);
     }
     if (depth <= 7)
     {
         this.onTab = (SerializedStateReader.Instance.ReadUnityEngineObject() as GameObject);
     }
     this.startsSelected = SerializedStateReader.Instance.ReadBoolean();
     SerializedStateReader.Instance.Align();
 }