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
↧