mirror of
https://github.com/Steffo99/gravity-fusion.git
synced 2024-11-22 16:24:20 +00:00
21 lines
515 B
C#
21 lines
515 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
|
|
public class TextFromUnspentBlackHoleMass : MonoBehaviour
|
|
{
|
|
protected Text text;
|
|
protected GameController gameController;
|
|
|
|
protected void Awake() {
|
|
text = GetComponent<Text>();
|
|
gameController = GameObject.Find("GameController").GetComponent<GameController>();
|
|
}
|
|
|
|
protected void Update()
|
|
{
|
|
text.text = gameController.blackHole.UnspentMass.ToString("0");
|
|
}
|
|
}
|