DoublePKGameView.cs 1013 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class DoublePKGameView : MonoBehaviour
  6. {
  7. [SerializeField] Text scoreText1P;
  8. [SerializeField] Text scoreText2P;
  9. [SerializeField] Text timeText;
  10. [SerializeField] Text Battery1P;
  11. [SerializeField] Text Battery2P;
  12. // Start is called before the first frame update
  13. void Start()
  14. {
  15. }
  16. // Update is called once per frame
  17. //void Update()
  18. //{
  19. //}
  20. public void setScore1P(float value) {
  21. scoreText1P.text = value.ToString();
  22. }
  23. public void setScore2P(float value)
  24. {
  25. scoreText2P.text = value.ToString();
  26. }
  27. public void setTime(string value) {
  28. timeText.text = value;
  29. }
  30. public void setBattery1P(int value)
  31. {
  32. Battery1P.text = "µçÁ¿:"+ value.ToString() + "%";
  33. }
  34. public void setBattery2P(int value)
  35. {
  36. Battery2P.text = "µçÁ¿:" + value.ToString() + "%";
  37. }
  38. }