示例#1
0
    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);
    }
示例#2
0
    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"));
    }
示例#3
0
 public void Buy()
 {
     AwakeningUpgradeController.Upgrade(upgradeType, this, true);
 }