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();
        }
Esempio n. 2
0
 public static SkillUnit.SkillBackStab ConvertSkillBackStab(SkillBackStab unit)
 {
     SkillUnit.SkillBackStab oUnit = new SkillUnit.SkillBackStab();
     oUnit.id           = unit.id;
     oUnit.referPoint   = (SkillUnit.SkillUnit.ReferPoint)(int) unit.referPoint;
     oUnit.basePoint    = (SkillUnit.SkillUnit.BasePoint)(int) unit.basePoint;
     oUnit.maxInfluence = unit.maxInfluence;
     oUnit.moveDelay    = unit.moveDelay;
     oUnit.hitArea      = ConvertSkillShape(unit.hitArea);
     return(oUnit);
 }
Esempio n. 3
0
        public SkillBackStab Copy()
        {
            SkillBackStab b = new SkillBackStab();

            b.id           = id;
            b.referPoint   = referPoint;
            b.basePoint    = basePoint;
            b.moveDelay    = moveDelay;
            b.maxInfluence = maxInfluence;
            b.hitArea      = hitArea.Copy();
            return(b);
        }