Question by
NinjaEntertainment · Jul 27, 2017 at 12:37 PM ·
error message
Error CS201
Guys im new in c# and unity can u help me? im trying to make reload animation for gun and i get this error Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement. Here is the code using System.Collections; using System.Collections.Generic; using UnityEngine; public class reload : MonoBehaviour { public Animator reload; void Start () { } // Update is called once per frame void Update () { if (Input.GetKeyDown (KeyCode.R)) { reload.GetComponent ().Play; } } } ----------
Comment
Your answer
Follow this Question
Related Questions
Error CS0535? 0 Answers
Roll a Ball script error?! 2 Answers
NullReferenceException: Object reference not set to an instance of an object 1 Answer
Scene Won't Load 1 Answer
Socket: bind failed, error 3 Answers