本文整理汇总了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
};
}
示例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
};
}