public override void MoveCar() { if (next != null) { next.MoveCar(); } if (Baan != null) { Baan.MoveCar(); } if (Kar != null) { if (Stance == 0) { next.Kar = Kar; this.Kar = null; } if (Stance == 1) { Baan.Kar = Kar; this.Kar = null; } } }
public virtual void MoveCar() { if (next != null) { next.MoveCar(); if (Kar != null) { if (next.canMove(this)) { next.Kar = Kar; this.Kar = null; if (next.Haven != null) { if (next.Haven.load()) { next.Kar.Drop(); } } } } } }