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()); } }
public Default(Log log, Act <T> frame) { this.log = log; frame.Connect(new CallDefaultPort <T>(this)).SetPriority(Short.MAX_VALUE_JAVA); }