Exemplo n.º 1
0
    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;
    }
Exemplo n.º 2
0
 // 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();
 }