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


C# Creature.Combat_Level方法代码示例

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


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

示例1: Stats

 private void Stats(ref Creature Creature_Editor)
 {
     Layout.Text("Name",ref Creature_Editor.Name);
     Layout.Text("Description",ref Creature_Editor.Description);
     Level_Foldout = EditorGUILayout.Foldout(Level_Foldout, "Levels");
     if (Level_Foldout)
     {
         EditorGUILayout.BeginHorizontal();
         Layout.Float("Change All Levels", ref Creature_Editor.Change_All_Levels);
         if(GUILayout.Button("Confirm",GUILayout.Height(15f),GUILayout.Width(58f)))
         {
             Creature_Editor.Level_Up(Stat.Hitpoints_Level,Creature_Editor.Change_All_Levels,true);
             Creature_Editor.Level_Up(Stat.Melee_Level,Creature_Editor.Change_All_Levels,true);
             Creature_Editor.Level_Up(Stat.Magic_Level,Creature_Editor.Change_All_Levels,true);
             Creature_Editor.Level_Up(Stat.Archery_Level,Creature_Editor.Change_All_Levels,true);
             Level_Up_Equipment (ref Creature_Editor.Slot[(int)Assign_Slot.Primary_Hand], Creature_Editor.Change_All_Levels);
             Level_Up_Equipment (ref Creature_Editor.Slot[(int)Assign_Slot.Secondary_Hand], Creature_Editor.Change_All_Levels);
             Level_Up_Equipment (ref Creature_Editor.Slot[(int)Assign_Slot.Armor], Creature_Editor.Change_All_Levels);
         }
         EditorGUILayout.EndHorizontal();
         EditorGUILayout.LabelField("Combat",EditorStyles.boldLabel);
         EditorGUI.indentLevel++;
         EditorGUILayout.FloatField("Combat Level",Creature_Editor.Combat_Level());
         Layout.Float("Hitpoints Level",ref Creature_Editor.Stat_Dictionary,Stat.Hitpoints_Level);
         Layout.Float("Melee Level",ref Creature_Editor.Stat_Dictionary,Stat.Melee_Level);
         Layout.Float("Magic Level",ref Creature_Editor.Stat_Dictionary,Stat.Magic_Level);
         Layout.Float("Archery Level",ref Creature_Editor.Stat_Dictionary,Stat.Archery_Level);
         Layout.Float("Movement",ref Creature_Editor.Stat_Dictionary,Stat.Movement);
         EditorGUI.indentLevel--;
         EditorGUILayout.LabelField("Equipment",EditorStyles.boldLabel);
         EditorGUI.indentLevel++;
         Layout.Float("Primary Hand Level",ref Creature_Editor.Slot[(int)Assign_Slot.Primary_Hand].Level);
         Layout.Float("Secondary Hand Level",ref Creature_Editor.Slot[(int)Assign_Slot.Secondary_Hand].Level);
         Layout.Float("Armor Level",ref Creature_Editor.Slot[(int)Assign_Slot.Armor].Level);
         EditorGUI.indentLevel--;
     }
     EditorGUILayout.PropertyField(Passives,true);
     EditorGUILayout.PropertyField(Actives,true);
     EditorGUILayout.PropertyField(Defects,true);
 }
开发者ID:phoenixanimations,项目名称:Port-02,代码行数:40,代码来源:Creature_GUI.cs


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