Exemplo n.º 1
0
        /// <summary>
        /// Starts the round, allowing the player to build etc.
        /// </summary>
        public void BeginRound()
        {
            ProjectileController.Singleton.ClearProjectiles();
            VehicleController.Singleton.ClearVehicles();
            RoundCleanController.Singleton.ResetRound();

            ChallengesController.ResetChallengeValues();

            ReadyActionControllers();

            RoundSurpriseController.Singleton.ResetRoundSurprise();

            StartCoroutine("BuildCycle");
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new round from a random round template.
        /// </summary>
        public void CreateNewRound()
        {
            BorderController.HideBorder();
            RoundCleanController.Singleton.CleanRound();

            StopCoroutine("BuildCycle");
            StopCoroutine("ActionPhase");
            roundHasEnded = false;

            currentRound = new Round(ChooseRoundTemplate());

            ChallengesController.ResetChallengeValues();

            UIChallengesController.Singleton.InitializeUIChallenges(currentRound.RoundChallenges);
        }