24 lines
658 B
C#
24 lines
658 B
C#
using UnityEngine;
|
|
using TMPro;
|
|
|
|
public class PinballUncountableMultiplierPopupView : MonoBehaviour
|
|
{
|
|
[SerializeField] private GameObject goNormal, goMore, goMax;
|
|
[SerializeField] private TMP_Text textMultiplier;
|
|
private void Awake()
|
|
{
|
|
gameObject.SetActive(false);
|
|
goNormal.SetActive(false);
|
|
goMore.SetActive(false);
|
|
goMax.SetActive(false);
|
|
}
|
|
|
|
public void Show(int multiplier, bool isMax)
|
|
{
|
|
goNormal.SetActive(!isMax);
|
|
goMax.SetActive(isMax);
|
|
gameObject.SetActive(false);
|
|
gameObject.SetActive(true);
|
|
textMultiplier.text = 'x' + multiplier.ToString();
|
|
}
|
|
} |