Esempio n. 1
0
        /// <summary>
        /// Spawn bloons in game
        /// </summary>
        /// <param name="inGame"></param>
        /// <param name="round"></param>
        public static void SpawnBloons(this InGame inGame, int round)
        {
            GameModel model = inGame.GetGameModel();

            int index = (round < 100) ? round - 1 : round - 100;
            Il2CppReferenceArray <BloonEmissionModel> emissions = (round < 100) ? model.GetRoundSet().rounds[index].emissions : model.freeplayGroups[index].bloonEmissions;

            inGame.SpawnBloons(emissions);
        }