AcquiredAttributeUnit.cs 452 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using UnityEngine;
  3. public class AcquiredAttributeUnit : MonoBehaviour
  4. {
  5. private void Awake()
  6. {
  7. this.label_ = UTY.GetChildObject(base.gameObject, "Name", false).GetComponent<UILabel>();
  8. }
  9. public void SetActive(bool value)
  10. {
  11. base.gameObject.SetActive(value);
  12. }
  13. public bool IsActive()
  14. {
  15. return base.gameObject.activeSelf;
  16. }
  17. public void SetText(string text)
  18. {
  19. this.label_.text = text;
  20. }
  21. private UILabel label_;
  22. }