TipView.cs 451 B

1234567891011121314151617
  1. using TMPro;
  2. using UnityEngine.UI;
  3. using WS;
  4. public class TipView : View
  5. {
  6. public Button sureBtn;
  7. public TextMeshProUGUI contentText;
  8. public override void LoadInit()
  9. {
  10. ShowModeType = ViewShowModeType.Screen;
  11. ReferenceCollector rc = UIGameObject.GetComponent<ReferenceCollector>();
  12. sureBtn = rc.GetComponent<Button>("SureBtn");
  13. contentText = rc.GetComponent<TextMeshProUGUI>("ContentText");
  14. }
  15. }