AcquiredAttributeUnit.cs 664 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using I2.Loc;
  3. using UnityEngine;
  4. using wf;
  5. public class AcquiredAttributeUnit : MonoBehaviour
  6. {
  7. private void Awake()
  8. {
  9. this.label_ = UTY.GetChildObject(base.gameObject, "Name", false).GetComponent<UILabel>();
  10. this.label_loc_ = this.label_.GetComponent<Localize>();
  11. }
  12. public void SetActive(bool value)
  13. {
  14. base.gameObject.SetActive(value);
  15. }
  16. public bool IsActive()
  17. {
  18. return base.gameObject.activeSelf;
  19. }
  20. public void SetText(string text)
  21. {
  22. this.label_.text = text;
  23. }
  24. public void SetTerm(string termText)
  25. {
  26. Utility.SetLocalizeTerm(this.label_loc_, termText);
  27. }
  28. private UILabel label_;
  29. private Localize label_loc_;
  30. }