当前位置: 首页>>代码示例>>C#>>正文


C# System.Collections.Generic.List.First方法代码示例

本文整理汇总了C#中System.Collections.Generic.List.First方法的典型用法代码示例。如果您正苦于以下问题:C# System.Collections.Generic.List.First方法的具体用法?C# System.Collections.Generic.List.First怎么用?C# System.Collections.Generic.List.First使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Collections.Generic.List的用法示例。


在下文中一共展示了System.Collections.Generic.List.First方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GameStageManagerSecond

        /// <summary>
        /// สร้างระดับความยากของเกมตอนเริ่มต้น
        /// </summary>
        public GameStageManagerSecond()
        {
            // สร้างระดับความยากของเกมในช่วง (Level 1-12)
            _gameLevels = new System.Collections.Generic.List<GameLevel>()
            {
                // TODO: ระดับความยาก State 2 ยังไม่รอบรับการสลับระหว่างที่ทำการเลือกแก้ว
                new GameLevelSecondFix(2,0,1,2,3,0,10,1.000f,01,"1"),
                new GameLevelSecondFix(2,0,1,2,3,1,15,1.665f,02,"1"),
                new GameLevelSecondFix(3,0,2,3,3,0,20,1.000f,03,"1"),
                new GameLevelSecondFix(3,0,2,3,3,1,25,1.665f,04,"1"),
                new GameLevelSecondFix(3,0,2,3,3,1,30,1.665f,05,"2"),
                new GameLevelSecondFix(4,0,3,4,3,0,35,1.000f,06,"2"),
                new GameLevelSecondFix(4,0,3,4,3,1,401,1.665f,07,"2"),
                new GameLevelSecondFix(4,0,3,4,3,1,45,1.665f,08,"2"),
                new GameLevelSecondFix(4,0,3,4,3,2,50,1.665f,09,"3"),
                new GameLevelSecondFix(5,0,4,5,3,0,55,1.665f,10,"3"),
                new GameLevelSecondFix(5,0,4,5,3,1,60,1.665f,11,"3"),
                new GameLevelSecondFix(5,1,4,5,3,1,65,1.665f,12,"3"),
            };
            _currentLevel = _gameLevels.First();

            const int AddTimeSecond = 3;
            const int MaximumTimePluse = 5;
            const float AddGameComboPluse = 0.1f;
            const float GameComboPluse = 0.9f;
            _timeCombo = new TimeCombo(AddTimeSecond,MaximumTimePluse);
            _gameCombo = new GameCombo
            {
                Pluse = GameComboPluse,
                AddPluse = AddGameComboPluse
            };
        }
开发者ID:teerachail,项目名称:MayTuxy,代码行数:35,代码来源:GameStageManagerSecond.cs

示例2: GameStageManagerFirst

        /// <summary>
        /// สร้างระดับความยากของเกมตอนเริ่มต้น
        /// </summary>
        public GameStageManagerFirst()
        {
            // สร้างระดับความยากของเกมในช่วง (Level 1-12)
            _gameLevels = new System.Collections.Generic.List<GameLevel>()
            {
                new GameLevelFirstFix(3,03,13,0,1.665f,01,"1"),
                new GameLevelFirstFix(3,04,16,0,2.220f,02,"1"),
                new GameLevelFirstFix(3,05,19,0,2.775f,03,"1"),
                new GameLevelFirstFix(3,06,22,0,3.330f,04,"1"),
                new GameLevelFirstFix(4,07,25,0,3.885f,05,"2"),
                new GameLevelFirstFix(4,08,28,0,4.440f,06,"2"),
                new GameLevelFirstFix(4,09,31,0,4.995f,07,"2"),
                new GameLevelFirstFix(4,10,34,0,5.550f,08,"2"),
                new GameLevelFirstFix(5,11,37,0,6.105f,09,"3"),
                new GameLevelFirstFix(5,12,40,0,6.670f,10,"3"),
                new GameLevelFirstFix(5,13,43,0,7.225f,11,"3"),
                new GameLevelFirstFix(5,14,46,0,7.780f,12,"3"),
            };
            _currentLevel = _gameLevels.First();

            const int AddTimeSecond = 6;
            const int MaximumTimePluse = 3;
            const float AddGameComboPluse = 0.1f;
            const float GameComboPluse = 0.9f;
            _timeCombo = new TimeCombo(AddTimeSecond,MaximumTimePluse);
            _gameCombo = new GameCombo
            {
                Pluse = GameComboPluse,
                AddPluse = AddGameComboPluse
            };
        }
开发者ID:teerachail,项目名称:MayTuxy,代码行数:34,代码来源:GameStageManagerFirst.cs


注:本文中的System.Collections.Generic.List.First方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。