TipBulletNumber.cs 548 B

12345678910111213141516171819202122232425
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class TipBulletNumber : MonoBehaviour
  6. {
  7. [SerializeField] Text outText;
  8. // Start is called before the first frame update
  9. IEnumerator Start()
  10. {
  11. yield return new WaitForSecondsRealtime(3.0f);
  12. Destroy(this.gameObject);
  13. }
  14. /// <summary>
  15. /// ÉèÖÃ×ÖÌåÑÕÉ«
  16. /// </summary>
  17. /// <param name="color"></param>
  18. public void SetOutTipColor(Color color) {
  19. outText.color = color;
  20. }
  21. }