48 lines
850 B
C#
48 lines
850 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class ServerWorkTopRightScore : MonoBehaviour
|
|
{
|
|
public static ServerWorkTopRightScore Instance;
|
|
|
|
public TMP_Text Val1;
|
|
public TMP_Text Val2;
|
|
public TMP_Text Val3;
|
|
|
|
private void Awake()
|
|
{
|
|
Instance = this;
|
|
}
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public void UpdateScoreVals()
|
|
{
|
|
if (Val1)
|
|
{
|
|
Val1.text = GlobalData.VIRTUE_SCORE.ToString();
|
|
}
|
|
|
|
if (Val2)
|
|
{
|
|
Val2.text = GlobalData.KARMA_SCORE.ToString();
|
|
}
|
|
|
|
if (Val3)
|
|
{
|
|
Val3.text = GlobalData.SINCERITY_SCORE.ToString();
|
|
}
|
|
}
|
|
}
|