Refactorisation
This commit is contained in:
@@ -5,13 +5,13 @@ using UnityEngine.SceneManagement;
|
||||
public class EndScene : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private TMP_Text mayorsText, minautorsText, bringerOfDeathText;
|
||||
private TMP_Text _mayorsText, _minautorsText, _bringerOfDeathText;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
mayorsText.SetText($"Mayors killed: {GameManager.MayorKills}");
|
||||
minautorsText.SetText($"Minautors killed: {GameManager.MinautorKills}");
|
||||
bringerOfDeathText.SetText($"Bringers of Death killed: {GameManager.BringerOfDeathKills}");
|
||||
_mayorsText.SetText($"Mayors killed: {GameManager.MayorKills}");
|
||||
_minautorsText.SetText($"Minautors killed: {GameManager.MinautorKills}");
|
||||
_bringerOfDeathText.SetText($"Bringers of Death killed: {GameManager.BringerOfDeathKills}");
|
||||
}
|
||||
|
||||
public void RestartGame()
|
||||
|
||||
Reference in New Issue
Block a user