public void SetPlayerFree() { if (player.MoveInput()) { player.setState((int)PlayerState.move); } else { player.setState((int)PlayerState.idle); } }