TestState.cs 597 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class TestState : MonoBehaviour
  6. {
  7. // Start is called before the first frame update
  8. public Text info;
  9. void Start()
  10. {
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. var testinfo ="";
  16. testinfo += "Remained Time: " + TestManagement.Instance.TotalTime + "\n";
  17. testinfo += "Target: " + TestManagement.Instance.rescuedTarget + "/" + TestManagement.Instance.totalTarget + "\n";
  18. info.text = testinfo;
  19. }
  20. }