Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Error CS201

$
0
0
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; } } } ---------- `

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>