So i made this script to load and save i am jsut testing and plan to add more variables later however
when i created the script i got a error
![alt text][1]
Here is my Click Script which has the gold float inside
using System.Collections;
using UnityEngine;
public class Click : MonoBehaviour {
public UnityEngine.UI.Text GPC;
public UnityEngine.UI.Text goldDisplay;
public float gold = 0.00f;
public int goldperclick = 1;
void Update () {
goldDisplay.text = "Gold : " + Currency.Instance.GetCurrencyIntoString(gold, false, false);
GPC.text = "GPC: " + goldperclick;
}
public void Clicked(){
gold = gold + goldperclick;
}
}
[1]: /storage/temp/87850-error.png
↧