Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.UI;
  4.  
  5. public class GameMaster : MonoBehaviour {
  6.  
  7. private Ball BallInfo;
  8. private Canvas GameScreen;
  9.  
  10. // Use this for initialization
  11. void Start () {
  12. BallInfo = GetComponent<Ball>();
  13.  
  14. }
  15.  
  16. // Update is called once per frame
  17. void Update () {
  18. int player1Score = 0 + BallInfo.LScore;
  19. int player2Score = 0 + BallInfo.RScore;
  20.  
  21. GameScreen.transform.Find"LScoreDisplay".text = player1Score;
  22.  
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement