i was following the roll a ball tutorial but it says there is a compile error in the script component and it says the referenced script on this behavior is missing
it says the referenced script that is missing is game object player
Answer by $$anonymous$$ · Oct 31, 2016 at 10:11 PM
Having similar problems. Although my compiler errors are different (I've checked my code against the tutorial. My error messages are:
Expression denotes a
type', where a
variable',value' or
method group' was expectedThe best overloaded method match for
UnityEngine.Rigidbody.AddForce(UnityEngine.Vector3)' has some invalid arguments 3. Argument
#1' cannot convertobject' expression to type
UnityEngine.Vector3'
My code is: using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { private Rigidbody rb; void Start () %|401944385_3|% rb = GetComponent<Rigidbody>(); } void FixedUpdate () %|2008330527_7|% %|1761885109_8|% float moveVertical = Input.GetAxis ("Vertical"); %|-547505816_10|% %|-131134806_11|% } }
Your answer
Follow this Question
Related Questions
roll a ball scripting tutorial problem 0 Answers
Why is my camera rolling around like a ball? 3 Answers
How would I generate a new object based on player location? 0 Answers
Roll a Ball script error?! 2 Answers
2 player Roll a Ball 0 Answers