MonsterInfo.cs 487 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class MonsterInfo : MonoBehaviour {
  6. public static MonsterInfo instance;
  7. public Text timeText;
  8. // public Text EnemyName;
  9. // Use this for initialization
  10. void Awake () {
  11. instance = this;
  12. }
  13. // Update is called once per frame
  14. void Update () {
  15. }
  16. public void TimeUpdate(string msg)
  17. {
  18. timeText.text = "下一波敌人: " + msg;
  19. }
  20. }