/// <summary> /// Function that should be called every time that the character strat moving /// the X and Y value helps to decide what animation should be played (if the character is walking up or going back, etc) /// </summary> public void eventReportMovement(float x) { if (CurrentState == PlayerStates.idle) { animationController.PlayRunAnim(x); } }