public void initialize(PlayerView.SkillMenu skillMenu, CharacterInstance owner, GameLogic.SkillInstance skillInstance) { this.SkillMenu = skillMenu; this.Owner = owner; this.SkillInstance = skillInstance; ConfigSkills.SharedData data = ConfigSkills.SHARED_DATA[skillInstance.SkillType]; this.Image.sprite = PlayerView.Binder.SpriteResources.getSprite(data.Spritesheet, data.Sprite); this.Name.text = _.L(data.Name, null, false); ColorBlock colors = this.Toggle.colors; if (owner.Rank >= data.UnlockRank) { object[] objArray1 = new object[] { "<color=orange>", skillInstance.Rank, "/", App.Binder.ConfigMeta.GLOBAL_LEVEL_CAP, "</color>" }; this.Text.text = string.Concat(objArray1); colors.normalColor = Color.white; } else { this.Text.text = "<color=red>Lvl " + data.UnlockRank + "</color>"; colors.normalColor = DISABLED_SKILL_TOGGLE_COLOR; } this.Toggle.colors = colors; }