Exemplo n.º 1
0
 public void SetPart(MSBS.Part.MapPiece part)
 {
     setBasePart(part);
     Unk1 = gameObject.AddComponent <MSBSUnkStruct1Part>();
     Unk1.setStruct(part.Unk1);
     Gparam = gameObject.AddComponent <MSBSGParamConfig>();
     Gparam.setStruct(part.Gparam);
     Unk00 = part.Unk7.Unk00;
     Unk04 = part.Unk7.Unk04;
     Unk08 = part.Unk7.Unk08;
     Unk0C = part.Unk7.Unk0C;
     Unk10 = part.Unk7.Unk10;
     Unk14 = part.Unk7.Unk14;
 }
Exemplo n.º 2
0
    public MSBS.Part.MapPiece Serialize(GameObject parent)
    {
        var part = new MSBS.Part.MapPiece();

        _Serialize(part, parent);
        part.Unk1       = Unk1.Serialize();
        part.Gparam     = Gparam.Serialize();
        part.Unk7       = new MSBS.Part.UnkStruct7();
        part.Unk7.Unk00 = Unk00;
        part.Unk7.Unk04 = Unk04;
        part.Unk7.Unk08 = Unk08;
        part.Unk7.Unk0C = Unk0C;
        part.Unk7.Unk10 = Unk10;
        part.Unk7.Unk14 = Unk14;
        return(part);
    }