Hello,
Could someone help me please? I’m practicing to write scripts and I thought I was doing OK, but I have tried to write this script on my own and I keep getting errors. Am I on the right track with this script and could someone please help me fix it? Or is this script completely wrong and I should give up?
using UnityEngine;
using System.Collections;
public class Game : MonoBehaviour
{
public float Money = 100f;
public float MoreMoney = 50f;
public void ButtonClick()
{
Money = (Money + MoreMoney);
if Money = 500 (MoreMoney = 0);
}
}
Thanks for the help.