예제 #1
0
 public void SetRegion(MSB3.Region.Sound region)
 {
     setBaseRegion(region);
     SoundType        = region.SoundType;
     SoundID          = region.SoundID;
     ChildRegionNames = region.ChildRegionNames;
 }
예제 #2
0
    public MSB3.Region.Sound Serialize(GameObject parent)
    {
        var region = new MSB3.Region.Sound(ID, parent.name);

        _Serialize(region, parent);
        region.SoundID   = SoundID;
        region.SoundType = SoundType;
        for (int i = 0; i < 16; i++)
        {
            if (i >= ChildRegionNames.Length)
            {
                break;
            }
            region.ChildRegionNames[i] = (ChildRegionNames[i] == "") ? null : ChildRegionNames[i];
        }
        return(region);
    }
예제 #3
0
    public override MSB3.Region Serialize(GameObject parent)
    {
        var region = new MSB3.Region.Sound(parent.name);

        _Serialize(region, parent);
        region.SoundID   = SoundID;
        region.SoundType = SoundType;
        for (int i = 0; i < 16; i++)
        {
            if (i >= ChildRegionNames.Length)
            {
                region.ChildRegionNames[i] = null;
                continue;
            }
            region.ChildRegionNames[i] = (ChildRegionNames[i] == "") ? null : ChildRegionNames[i];
        }
        return(region);
    }