PopupTest.cs 484 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class PopupTest : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. void Start()
  8. {
  9. // PopupMgr.ins.ShowPKInviteNotice(10, "aaa", "邀请你过来", null);
  10. }
  11. int index = 0;
  12. float t = 0;
  13. void Update()
  14. {
  15. t += Time.deltaTime;
  16. if (t > 0.5) {
  17. t = 0;
  18. PopupMgr.ins.ShowTip("ttt" + index++);
  19. }
  20. }
  21. }