1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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<UISprite>();
- this.label_ = UTY.GetChildObject(base.gameObject, "Name", false).GetComponent<UILabel>();
- this.label_loc_ = this.label_.GetComponent<Localize>();
- }
- 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_;
- }
|