using System; using I2.Loc; using UnityEngine; using wf; public class AcquiredSkillUnit : MonoBehaviour { private void Awake() { this.bg_sprite_ = UTY.GetChildObject(base.gameObject, "BGGray", false).GetComponent(); this.label_ = UTY.GetChildObject(base.gameObject, "Name", false).GetComponent(); this.label_loc_ = this.label_.GetComponent(); } public void SetActive(bool value) { base.gameObject.SetActive(value); } public bool IsActive() { return base.gameObject.activeSelf; } public void SetBGVisible(bool value) { this.bg_sprite_.enabled = value; } public bool IsBGVisible() { return this.bg_sprite_.enabled; } public void SetText(string text) { this.label_.text = text; } public void SetTerm(string termText) { Utility.SetLocalizeTerm(this.label_loc_, termText, false); } private UISprite bg_sprite_; private UILabel label_; private Localize label_loc_; }