private void Start() { _blankCard = Resources.Load <Texture>("Blank card"); _rawImage = GetComponent <RawImage>(); _card = _rawImage.texture; _costGO = transform.GetChild(0).gameObject; _costTMP = _costGO.transform.GetChild(0).GetComponentInChildren <TextMeshProUGUI>(); _description = transform.GetChild(1).gameObject; _description.SetActive(false); AwakeningUpgradeController.Upgrade(upgradeType, this, false); }
private void GlobalLoad() { Debug.Log("Load global"); extractedOresCounter.LoadOres(LoadSystem.Load <ExtractedOresData>("extractedOres")); SinglePlayerValues.LoadData(LoadSystem.Load <PlayerValuesData>("playerValues")); GameManager.LoadIndex(LoadSystem.Load <GameManagerData>("gameManager")); Statistics.LoadData(LoadSystem.Load <StatisticsData>("statistics")); AwakeningUpgradeController.LoadData(LoadSystem .Load <AwakeningUpgradeData>("awakeningUpgrades")); }
public void Buy() { AwakeningUpgradeController.Upgrade(upgradeType, this, true); }