23 lines
512 B
C#
23 lines
512 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using TMPro;
|
|
public class RankedGameSummary : MonoBehaviour
|
|
{
|
|
public TMP_Text txtGameOver;
|
|
public TMP_Text txtTrophies;
|
|
|
|
|
|
public void ShowWin(){
|
|
txtGameOver.text = "You Won!";
|
|
txtTrophies.text= "+30";
|
|
txtTrophies.color = Color.green;
|
|
}
|
|
|
|
public void ShowLoss(){
|
|
txtGameOver.text = "You Lost!";
|
|
txtTrophies.text= "-15";
|
|
txtTrophies.color = Color.red;
|
|
}
|
|
}
|