Hi, I am making a 3D game in unity with guns, so I am using this tutorial:
I am around 10:08 and we have two scripts, but when I use Visual Studio the brackets don’t match up.
These are the two scripts
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Target : MonoBehaviour, IDamageable
{
private float health = 100f;
public void Damage(float damage);
{
health -= damage
if (health <= 0)
{
}
}
}
and
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public interface IDamageable
{
public void Damage(float damage);
{
}
}
Edit: Figured it out realizes i accidentally used a semicolon when i wasn’t supposed to