public void EnterTube(IDisposalTubeComponent tube) { if (CurrentTube != null) { PreviousTube = CurrentTube; } Owner.Transform.Coordinates = tube.Owner.Transform.Coordinates; CurrentTube = tube; NextTube = tube.NextTube(this); StartingTime = 0.1f; TimeLeft = 0.1f; }
public bool CanConnect(Direction direction, IDisposalTubeComponent with) { if (!_connected) { return(false); } if (!ConnectableDirections().Contains(direction)) { return(false); } return(true); }