Seascape/Assets/ScoreManager.cs

28 lines
592 B
C#
Raw Permalink Normal View History

2025-03-19 10:28:26 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ScoreManager : MonoBehaviour
{
public PlayerScript playerScript;
public Text sharkPointsTx;
public Text HaiscoreTx;
public int sharkPoints = 0;
public int haiscore = 0;
// Start is called before the first frame update
void Update()
{
if (playerScript != null)
{
sharkPointsTx.text = playerScript.GetSharkPoints().ToString();
//HaiscoreTx.text = "Haiscore: " + haiscore.ToString();
}
}
}