Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        float score = 0;

        GameController.PhotoScore bestScore = GameController.instance.GetBestScore();
        if (bestScore != null)
        {
            score = bestScore.score;
        }
        textMesh.text = string.Format("{0}", score);
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     GameController.PhotoScore bestScore = GameController.instance.GetBestScore();
     Debug.Log("ShowBestPicture: score: " + bestScore.score + ", photo: " + bestScore.photo);
     GetComponent <MeshRenderer>().material.mainTexture = bestScore.photo;
 }