Пример #1
0
        public LogicCalendarBuildingDestroyedSpawnUnit GetBuildingDestroyedSpawnUnit()
        {
            for (int i = this.m_activeCalendarEvents.Size() - 1; i >= 0; i--)
            {
                LogicCalendarBuildingDestroyedSpawnUnit buildingDestroyedSpawnUnit = this.m_activeCalendarEvents[i].GetBuildingDestroyedSpawnUnit();

                if (buildingDestroyedSpawnUnit != null)
                {
                    return(buildingDestroyedSpawnUnit);
                }
            }

            return(null);
        }
Пример #2
0
 public void SetBuildingDestroyedSpawnUnit(LogicCalendarBuildingDestroyedSpawnUnit buildingDestroyedSpawnUnit)
 {
     this.m_buildingDestroyedSpawnUnit = buildingDestroyedSpawnUnit;
 }