Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        private void UpdateDisplay()
        {
            string template = "PAULISTAS: {0}";

            string newCount = AutomaticCharacter.GetCurrentCount().ToString("D2");

            string newText = string.Format(template, newCount);

            displayCount.text = newText;
        }
Ejemplo n.º 3
0
        public void CheckVictory()
        {
            // No more Spawns
            bool entranceCleared = Entrance.current.totalSpawned == Entrance.current.maxSpawn;
            int  CharacterLeft   = AutomaticCharacter.GetCurrentCount();

            if (entranceCleared && (CharacterLeft == 0))
            {
                EndLevel();
            }
        }