public void Merge(DropZoneGroup other) { zones.AddRange(other.zones); foreach (DropZone zone in zones) { zone.group = this; } List <DropZone> tmp = zones.Distinct().ToList(); zones = tmp; }
// Use this for initialization public override void Start() { base.Start(); isObstacle = false; group = new DropZoneGroup(); group.zones.Add(this); for (int i = 0; i < 4; i++) { if (paintEncoding[i]) { PaintZone(i); } } Connect(); }