public void AddChest(Barrels chest) { if (chest != null) { chest.AssignPoint(this); } this._chest = chest; }
public void AssignChest(Barrels chest) { if (chest.point == this.currentPoint) { chest.AssignPoint(null); this._chest = chest; _chest.Move(this._x, this._y + 1, this._z); needsUpdate = true; } }
public void AddChest(Barrels chest) { _chests.Add(chest); chest.AssignPoint(null); chest.Move(this.x, this.y + 0.2m, this.z); }