Quantcast
Viewing all articles
Browse latest Browse all 110

JS to C# need help!

if(other.tag == "Ammo") { ShootObject.GetComponent(Shoot).ammo +=10; Destroy(other.gameObject); } that is my JS scripts code if(other.tag == "Ammo") { ShootObject.GetComponent(Shoot).ammo += 10; Destroy(other.gameObject); } and that is the C# code and i get this error. Assets/Scripts/Player.cs(44,50): error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected

Viewing all articles
Browse latest Browse all 110

Trending Articles