public static void DrawSkillBackStab(SkillBackStab line) { EditorGUILayout.BeginVertical("Box"); line.id = EditorGUILayout.IntField(" id", line.id); line.moveDelay = EditorGUILayout.IntField(" moveDelay", line.moveDelay); line.maxInfluence = EditorGUILayout.IntField(" maxInfluence:", line.maxInfluence); JSkillUnit.BasePoint bp = line.basePoint; int newbp = EditorGUILayout.Popup(" basePoint:", (int)bp, Enum.GetNames(typeof(JSkillUnit.BasePoint))); if (newbp != (int)bp) { bp = (JSkillUnit.BasePoint)newbp; } JSkillUnit.ReferPoint shape = line.referPoint; int newshape = EditorGUILayout.Popup(" referPoint:", (int)shape, Enum.GetNames(typeof(JSkillUnit.ReferPoint))); if (newshape != (int)shape) { shape = (JSkillUnit.ReferPoint)newshape; } SkillShape hitarea = line.hitArea; DrawSkillShape(" hitArea:", hitarea); EditorGUILayout.EndVertical(); }
public static void DrawSkillAreaRandom(SkillAreaRand line) { EditorGUILayout.BeginVertical("Box"); line.id = EditorGUILayout.IntField(" id", line.id); line.unitID = EditorGUILayout.IntField(" unitID", line.unitID); line.unitCount = EditorGUILayout.IntField(" unitCount:", line.unitCount); JSkillUnit.BasePoint bp = line.basePoint; int newbp = EditorGUILayout.Popup(" basePoint:", (int)bp, Enum.GetNames(typeof(JSkillUnit.BasePoint))); if (newbp != (int)bp) { bp = (JSkillUnit.BasePoint)newbp; } JSkillUnit.ReferPoint shape = line.referPoint; int newshape = EditorGUILayout.Popup(" referPoint:", (int)shape, Enum.GetNames(typeof(JSkillUnit.ReferPoint))); if (newshape != (int)shape) { shape = (JSkillUnit.ReferPoint)newshape; } SkillShape hitarea = line.area; DrawSkillShape(" area:", hitarea); EditorGUILayout.EndVertical(); }