private void Start() { cachedDb = GameManager.Instance.entitiesDatabase; GenerateCard(); PlayerData.Instance.OnUpdate += Refresh; Refresh(); }
private void Start() { unitsDb = GameManager.Instance.entitiesDatabase; buildingsdDb = GameManager.Instance.buildingsDatabase; unitsNames = PlayerPrefsX.GetStringArray("Units").ToList(); buildingsNames = PlayerPrefsX.GetStringArray("Buildings").ToList(); GenerateCard(); PlayerData.Instance.OnUpdate += Refresh; Refresh(); }