示例#1
0
        public static void SubUnitSpawned(UnitCreep creep)         //, int waveIdx){
        {
            AddActiveUnit(creep);
            instance.totalCreepCount += 1;    creep.instanceID = instance.totalCreepCount;

            int waveIdx = instance.GetListIndexFromWaveIndex(creep.waveIdx);

            instance.waveList[waveIdx].activeUnitCount += 1;
            if (instance.waveList[waveIdx].cleared)
            {
                Debug.LogWarning("Spawning subwave for cleared wave?");
            }
        }