| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class DoublePKGameView : MonoBehaviour
- {
- [SerializeField] Text scoreText1P;
- [SerializeField] Text scoreText2P;
- [SerializeField] Text timeText;
- [SerializeField] Text Battery1P;
- [SerializeField] Text Battery2P;
- // Start is called before the first frame update
- void Start()
- {
-
- }
- // Update is called once per frame
- //void Update()
- //{
-
- //}
- public void setScore1P(float value) {
- scoreText1P.text = value.ToString();
- }
- public void setScore2P(float value)
- {
- scoreText2P.text = value.ToString();
- }
- public void setTime(string value) {
- timeText.text = value;
- }
- public void setBattery1P(int value)
- {
- Battery1P.text = "µçÁ¿:"+ value.ToString() + "%";
- }
- public void setBattery2P(int value)
- {
- Battery2P.text = "µçÁ¿:" + value.ToString() + "%";
- }
- }
|