UPF/Assets/Game/Scripts/Minigame/RankedGameSummary.cs
2022-12-27 23:00:53 +05:30

29 lines
646 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 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;
}
}