Exemplo n.º 1
0
 public virtual void UpdateSyncTween(bool sync)
 {
     if (paintAllPort != null)
     {
         paint.Disconnect(paintAllPort);
     }
     if (paintPort != null)
     {
         paint.Disconnect(paintPort);
     }
     if (update != null)
     {
         update.Disconnect(updatePort);
     }
     if (sync)
     {
         paint.Connect(paintAllPort = new PaintAllPort(this));
     }
     else
     {
         paint.Connect(paintPort   = new PaintPort(this));
         update.Connect(updatePort = new UpdatePort());
     }
 }