Public float not in inspector
So i'm trying to create a fairly simple movement script but.. the public float isnt editable from the player the script is assigned to. and no there is no errors.
 using UnityEngine;
 using System.Collections;
 
 public class PlayerController : MonoBehaviour {
 
 
 public float moveSpeed;
 
  // Use this for initialization
  void Start () {
  
  }
  
  // Update is called once per frame
  void Update () {
         if (Input.GetAxisRaw("Horizontal") > 0.5f || Input.GetAxisRaw("Horizontal") < -0.5f )
         {
             transform.Translate (new Vector3(Input.GetAxisRaw("Horizontal") * moveSpeed * Time.deltaTime, 0f, 0f ));
                 
         }
         if (Input.GetAxisRaw("Vertical") > 0.5f || Input.GetAxisRaw("Vertical") < -0.5f)
         {
             transform.Translate(new Vector3(0f, Input.GetAxisRaw("Vertical") * moveSpeed * Time.deltaTime, 0f));
 
         }
     }
 }
 
              
               Comment
              
 
               
              If there is an error in another script, the PlayerController script won't show the moveSpeed variable
Please, format your code correctly using the 101010 button
I am sorry about the bad code formatting. $$anonymous$$y first question. Also I only have this script at the moment. I'm trying to create movement script before I progress.
Your answer