I am starting with Unity and C# and I got this error : Assets/scrpits/store.cs(41,53): error CS1002
Code here:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class store : MonoBehaviour
{
float CurrentBalance;
float BaseStoreCost;
float BaseStoreProfit;
int StoreCount;
public Text StoreCountText;
public Text CurrentBalanceText;
float StoreTimer = 4f;
float CurrentTimer = 0;
bool StartTimer;
// Start is called before the first frame update
void Start()
{
StoreCount = 1;
CurrentBalance = 6.0f;
BaseStoreCost = 1.50f;
BaseStoreProfit = .50f;
CurrentBalanceText.text = CurrentBalance.ToString(“C2”);
StartTimer = false;
}
// Update is called once per frame
void Update()
{
if (StartTimer)
{
CurrentTimer += Time.deltaTime;
if (CurrentTimer > StoreTimer)
{
Debug.Log(“Timer has ended. Reset.”)
StartTimer = false;
CurrentTimer = 0f;
CurrentBalance += BaseStoreProfit;
CurrentBalanceText.text = CurrentBalance.ToString(“C2”);
}
}
}
public void BuyStoreOnClick()
{
if (BaseStoreCost > CurrentBalance)
return;
StoreCount = StoreCount + 1;
Debug.Log(StoreCount);
StoreCountText.text = StoreCount.ToString();
CurrentBalance = CurrentBalance - BaseStoreCost;
Debug.Log(CurrentBalance);
CurrentBalanceText.text = CurrentBalance.ToString(“C2”);
}
public void StoreOnClick()
{
Debug.Log(“Clicked the store”);
if (!StartTimer)
StartTimer = true;
}
}