AcquiredSkillUnit.cs 726 B

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