AcquiredSkillUnit.cs 945 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using I2.Loc;
  3. using UnityEngine;
  4. using wf;
  5. public class AcquiredSkillUnit : MonoBehaviour
  6. {
  7. private void Awake()
  8. {
  9. this.bg_sprite_ = UTY.GetChildObject(base.gameObject, "BGGray", false).GetComponent<UISprite>();
  10. this.label_ = UTY.GetChildObject(base.gameObject, "Name", false).GetComponent<UILabel>();
  11. this.label_loc_ = this.label_.GetComponent<Localize>();
  12. }
  13. public void SetActive(bool value)
  14. {
  15. base.gameObject.SetActive(value);
  16. }
  17. public bool IsActive()
  18. {
  19. return base.gameObject.activeSelf;
  20. }
  21. public void SetBGVisible(bool value)
  22. {
  23. this.bg_sprite_.enabled = value;
  24. }
  25. public bool IsBGVisible()
  26. {
  27. return this.bg_sprite_.enabled;
  28. }
  29. public void SetText(string text)
  30. {
  31. this.label_.text = text;
  32. }
  33. public void SetTerm(string termText)
  34. {
  35. Utility.SetLocalizeTerm(this.label_loc_, termText, false);
  36. }
  37. private UISprite bg_sprite_;
  38. private UILabel label_;
  39. private Localize label_loc_;
  40. }