public void SetUpgradeStatus() { if (GameConfigs.SkillLevel(this.skillType) >= GameConfigs.MAXSkillLevel(this.skillType)) { level.text = "LV.MAX"; Color tColor = cost.color; tColor.a = 0.4f; cost.color = tColor; upgradeStatus = GameStatics.UPGRADE_STATUS.MAX_LEVEL; switch (this.skillType) { case GameStatics.SKILL_TYPE.MAXHP: expect.text = PlayerManager.Instance().PlayerStatus.MaxHP.ToString(); break; case GameStatics.SKILL_TYPE.AIRTIME_DURATION: expect.text = PlayerManager.Instance().PlayerStatus.AirTimeDuration.ToString(); break; case GameStatics.SKILL_TYPE.SHARD_PULL_DIST: expect.text = GameStatics.GetShardPullDistance().ToString(); break; default: break; } } else if (GameStatics.GetRequiredShardsForUpgrade(skillType) > PlayerManager.Instance().PlayerStatus.CurrentMemoryShards) { // 조각 부족 Color tColor = cost.color; tColor.a = 0.4f; cost.color = tColor; upgradeStatus = GameStatics.UPGRADE_STATUS.NOT_ENOUGH_SHARD; } else { // 업그레이드 가능 Color tColor = cost.color; tColor.a = 1f; cost.color = tColor; upgradeStatus = GameStatics.UPGRADE_STATUS.POSSIBLE; } }