title: Cannot implicitly convert type `bool' to `float'
body: <pre><code>using UnityEngine;
  using System.Collections;
  
  public class RightMovement : MonoBehaviour {
  
      public float maxSpeed = 10f;
      bool facingRight = true;
  
      void Start() {}
  
      void FixedUpdate() {
  
          float move = (Input.GetAxis("Horizontal") &gt; 0); 
          rigidbody2D.velocity = new Vector2 (move * maxSpeed, rigidbody2D.velocity.y);
      }
  }
  </code></pre>
  
  <p>This is the full error I keep getting:</p>
  
  <blockquote>
    <p>Assets/Scripts/RightMovement.cs(14,23): error CS0029: Cannot
    implicitly convert type <code>bool' to</code>float'</p>
  </blockquote>
  
  <p>I want to use <code>Input.GetAxis("Horizontal")</code> to move my sprite character, but I only want him to move right.</p>