HELP ME!
HEY IM GETTING THIS ERROR
Assets\CoinCounter.cs(20,25): error CS0029: Cannot implicitly convert type ‘string’ to ‘int’
using UnityEngine;
using UnityEngine.UI;
public class CoinCounter : MonoBehaviour
{
public GameObject Coin;
public Text NumberOfCoins;
public int DefaultZero = 0;
public int CoinValue = 1;
void Update (Collision collisionInfo)
{
if (collisionInfo.collider.tag == "Char")
{
Coin.SetActive(false);
NumberOfCoins.text = DefaultZero += CoinValue.ToString(); //ERROR HERE
}
}
}