- Home /
 
               Question by 
               garyh176 · May 19, 2015 at 06:51 PM · 
                errorvoidunexpected-symbolparser  
              
 
              help please
its probably simple but im new to coding so.
Assets/movement.cs(9,12): error CS1519: Unexpected symbol `void' in class, struct, or interface member declaration
 using UnityEngine; 
 using System.Collections;
 
 public class movement : MonoBehaviour {
 
     public float moveSpeed
     public float jumpHeight
  
     // Use this for initialization
     void Start ()  {
  
     }
  
     // Update is called once per frame
     void Update () {
  
     }
 }
               Comment
              
 
               
              Answer by Landern · May 19, 2015 at 06:53 PM
You're missing semicolons when you're declaring your two public fields called moveSpeed and jumpHeight.
 using UnityEngine; 
 using System.Collections;
 
 public class movement : MonoBehaviour {
 
     public float moveSpeed; // missing semicolon
     public float jumpHeight; // missing semicolon
  
     // Use this for initialization
     void Start ()  {
  
     }
  
     // Update is called once per frame
     void Update () {
  
     }
 }
Answer by georgeq · May 19, 2015 at 06:54 PM
You are missing the semicolons: (;)
 public float moveSpeed;
 public float jumpHeight;
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                