private void UpdateDisplay() { string template = "GOAL: {0} / {1} (Min: {2})"; string newCount = AutomaticCharacter.GetCurrentCount().ToString("D2"); string newText = string.Format(template, LevelManager.current.paulistaOut, LevelManager.current.paulistasIn, LevelManager.current.minOut); displayCount.text = newText; }
private void UpdateDisplay() { string template = "PAULISTAS: {0}"; string newCount = AutomaticCharacter.GetCurrentCount().ToString("D2"); string newText = string.Format(template, newCount); displayCount.text = newText; }
public void CheckVictory() { // No more Spawns bool entranceCleared = Entrance.current.totalSpawned == Entrance.current.maxSpawn; int CharacterLeft = AutomaticCharacter.GetCurrentCount(); if (entranceCleared && (CharacterLeft == 0)) { EndLevel(); } }