1 using System.Collections;
2 using
System.Collections.Generic;
3 using
UnityEngine;
4 using
UnityEngine.UI;
5 public
class HighScore : MonoBehaviour {
6
7     
public Text text;
8     
private int s;
9     
private int d;
10     
public int highscore;
11     
void Start () {
12         s = Score.score;
13         d = Distance.distance;
14         highscore = s *
3 + d;
15         text.text = highscore.ToString ();
16     }
17
18 }


Gõ tìm kiếm nhanh...