Update() 공개 메소드

public Update ( ) : void
리턴 void
예제 #1
0
        public void Update(GameTime gameTime)
        {
            _elevator.Update(gameTime);

            foreach (Person person in _persons)
            {
                person.Update(gameTime);
            }
        }
예제 #2
0
        public void CallElevatorFrom0To1()
        {
            Elevator elevator = new Elevator();

            elevator.CallElevator(1, ElevatorDirection.Both);

            for (int i = 0; i < 15; i++)
            {
                elevator.Update(1);
            }

            Assert.IsTrue(elevator.CurrentFloor == 1);
        }