public override void UpdateLogic(OfficeWorld officeWorld, Time timeElapsed) { if (this.associatedToken != this.previousAssociatedToken) { if (this.associatedToken != null) { AToken nextToken = this.NextToken; int i = 0; while (nextToken != null) { if (i == 0) { officeWorld.NotifyTextUpdated(nextToken, nextToken.PreviousToken, this.associatedToken, this.InitialPosition); } else { officeWorld.NotifyTextUpdated(nextToken, nextToken.PreviousToken, null, this.InitialPosition); } i++; nextToken = nextToken.NextToken; } officeWorld.NotifyInternalGameEvent(this.previousAssociatedToken, this.associatedToken, "association"); } this.previousAssociatedToken = this.associatedToken; } base.UpdateLogic(officeWorld, timeElapsed); }