PopupTest.cs 413 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. }
  10. int index = 0;
  11. float t = 0;
  12. void Update()
  13. {
  14. t += Time.deltaTime;
  15. if (t > 0.5) {
  16. t = 0;
  17. PopupMgr.ins.ShowTip("ttt" + index++);
  18. }
  19. }
  20. }