Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        public bool CanConnect(Direction direction, IDisposalTubeComponent with)
        {
            if (!_connected)
            {
                return(false);
            }

            if (!ConnectableDirections().Contains(direction))
            {
                return(false);
            }

            return(true);
        }