Пример #1
0
    //获取成熟期的一个地块
    public SeedGrowComponent GetTileRipe()
    {
        SeedGrowComponent ripe = null;

        if (ListSeedGrow != null && ListSeedGrow.Count > 0)
        {
            ripe = ListSeedGrow.Find(x => x.currCropPeriod == SeedGrowComponent.PeriodGrow.Ripe);
        }
        return(ripe);
    }
Пример #2
0
    //获取种子期的一个地块
    public SeedGrowComponent GetTileSeed()
    {
        SeedGrowComponent seed = null;

        if (ListSeedGrow != null && ListSeedGrow.Count > 0)
        {
            seed = ListSeedGrow.Find(x => x.currCropPeriod == SeedGrowComponent.PeriodGrow.Seed);
        }
        return(seed);
    }