using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class RankedGameSummary : MonoBehaviour { public TMP_Text txtGameOver; public TMP_Text txtTrophies; public ParticleSystem VictoryEffect; public void ShowWin(){ Debug.Log("You Won"); VictoryEffect.Play(); txtGameOver.text = "You Won!"; txtTrophies.text= "+30"; txtTrophies.color = Color.green; } public void ShowLoss(){ Debug.Log("You lost"); txtGameOver.text = "You Lost!"; txtTrophies.text= "-15"; txtTrophies.color = Color.red; } }