Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using UnityEngine.UI;
- public class GameMaster : MonoBehaviour {
- private Ball BallInfo;
- private Canvas GameScreen;
- // Use this for initialization
- void Start () {
- BallInfo = GetComponent<Ball>();
- }
- // Update is called once per frame
- void Update () {
- int player1Score = 0 + BallInfo.LScore;
- int player2Score = 0 + BallInfo.RScore;
- GameScreen.transform.Find"LScoreDisplay".text = player1Score;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement