/*The constructor takes in the player input script because it needs * to be able to communicate with the player and accept data about the * player, like input etc*/ public PlayerStateIdle(PlayerInputScript player) { pi = player; pi.ResetJumpCount(); Debug.Log("Entering idle state"); }