Пример #1
0
        private void BuildWaveStructure(Phase phaseType)
        {
            PhaseInterface findPhaseInterface = null;

            GameUnitManager.UnitInfo towerInfo = _gameUnitManager.GetUnitCount(VariableFlag.Pooling.TowerID);
            GameUnitManager.UnitInfo unitInfo  = _gameUnitManager.GetUnitCount(VariableFlag.Pooling.MonsterID);

            if (_phaseInterfaceDict.TryGetValue(phaseType, out findPhaseInterface))
            {
                findPhaseInterface.SetUp(_monsterStats);

                _UnitWave = findPhaseInterface.Calculate(WaveLength, towerInfo, unitInfo);

                WaveCombination       = 0;
                WaveCombinationLength = _UnitWave.phaseStructure.Length;

                return;
            }
            ;

            WaveCombination       = 0;
            WaveCombinationLength = 0;

            _UnitWave = default(UnitWave);
        }
Пример #2
0
 public InterfaceBlock(HaxeEmitterContext context, PhaseInterface type)
     : base(context)
 {
     _type = type;
 }