I keep on getting an error that says Assets\Coin.cs(31,6): error CS1513: } expected I dont know what to do to fix it can you help me my code is
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
void OnTriggerEnter(Collider Col)
Debug.Log(“Entered Collider”);
{
// Start is called before the first frame update
void Start()
{
void OnTriggerEnter(Collider Col)
{
Debug.Log(“ObjectCreated”);
++Coin.CoinCount;
}
// Update is called once per frame
void Update()
{
}
//Keeps track of total coin count in scene
public static int CoinCount = 0;
}
//Called when object is destroyed
void OnDestroy()
{
–Coin.CoinCount;
if (Coin.CoinCount <= 0)
{
//We have won
}
}
}