예제 #1
0
 // Update is called once per frame
 void Update()
 {
     //sets stationary and scared on the movement controller,
     //and determines if a state change is necessary
     updateTimers();
     stateMachine();
     currSpeed = enemyMovementController.getSpeed();
     currDir   = enemyMovementController.getDir();
     enemyMover.SetMovement(currDir, currSpeed);
 }