void Awake() { if (Instance == null) { Instance = this; } else { Debug.LogError("why"); } startingMoney = SaveLoadManager.Instance.currentSaveValue; currentMoney = startingMoney; UnitsList = new List <Unit>(); windowSetter = FindObjectOfType <WindowSetter>(); }
private void Start() { windowSetter = FindObjectOfType <WindowSetter>(); }
void Start() { windowSetter = FindObjectOfType <WindowSetter>(); // ReCreateSaves(); }