コード例 #1
0
ファイル: SpellAction.cs プロジェクト: TuckerBMorgan/Slide
 public void DrawEditor()
 {
     targetType   = (TargetType)EditorGUILayout.EnumPopup("Target Type", targetType);
     targetFilter = (TargetFilter)EditorGUILayout.EnumPopup("Target Filter", targetFilter);
     targetRange  = (TargetRange)EditorGUILayout.EnumPopup("Target Range", targetRange);
     if (targetRange == TargetRange.Range)
     {
         range = EditorGUILayout.IntField("Range", range);
     }
     else
     {
         range = 1;
         EditorGUILayout.LabelField("Range value is 1 for melee spells");
     }
     targetAOE = (TargetAOE)EditorGUILayout.EnumPopup("Target AOE", targetAOE);
     for (int i = 0; i < protoEvents.Count; i++)
     {
         protoEvents[i].DrawEditor();
     }
 }
コード例 #2
0
ファイル: SpellAction.cs プロジェクト: TuckerBMorgan/Slide
 public void DrawEditor()
 {
     targetType = (TargetType)EditorGUILayout.EnumPopup("Target Type", targetType);
     targetFilter = (TargetFilter)EditorGUILayout.EnumPopup("Target Filter", targetFilter);
     targetRange = (TargetRange)EditorGUILayout.EnumPopup("Target Range", targetRange);
     if (targetRange == TargetRange.Range)
     {
         range = EditorGUILayout.IntField("Range", range);
     }
     else
     {
         range = 1;
         EditorGUILayout.LabelField("Range value is 1 for melee spells");
     }
     targetAOE = (TargetAOE)EditorGUILayout.EnumPopup("Target AOE", targetAOE);
     for (int i = 0; i < protoEvents.Count; i++)
     {
         protoEvents[i].DrawEditor();
     }
 }