public override void Setup(string json) { base.Setup(json); var seed = BlockSeed.FromJson(json); var blocksToLink = new List <Block>(seed.links.Count); foreach (BlockSeed.Link seedLink in seed.links) { blocksToLink.Add(this.Vehicle.GetChildFromID <Block>(seedLink.id)); } for (int i = 0; i < blocksToLink.Count; ++i) { Connect(blocksToLink[i], seed.links[i].connectedAnchor); } }
public CoreBlockSeed(BlockSeed parent) : base(parent) { this.type = Type; }
public AttachableBlockSeed(BlockSeed parent) : base(parent) { this.type = Type; }