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; } } }
----------
`
↧