public static void DrawSkillFollow(SkillFollow line) { EditorGUILayout.BeginVertical("Box"); line.id = EditorGUILayout.IntField(" id", line.id); line.maxFollowTime = EditorGUILayout.IntField(" maxFollowTime", line.maxFollowTime); line.speed = EditorGUILayout.FloatField(" speed:", line.speed); line.waves = EditorGUILayout.IntField(" waves:", line.waves); line.waveDelay = EditorGUILayout.IntField(" waveDelay:", line.waveDelay); SkillShape hitarea = line.hitArea; DrawSkillShape(" hitArea:", hitarea); EditorGUILayout.EndVertical(); }
public SkillFollow Copy() { SkillFollow b = new SkillFollow(); b.id = id; b.maxFollowTime = maxFollowTime; b.speed = speed; b.waves = waves; b.waveDelay = waveDelay; b.hitArea = hitArea.Copy(); b.offset = offset; return(b); }
public static SkillUnit.SkillFollow ConvertSkillFollow(SkillFollow unit) { SkillUnit.SkillFollow oUnit = new SkillUnit.SkillFollow(); oUnit.id = unit.id; oUnit.maxFollowTime = unit.maxFollowTime; oUnit.offset = new Math.Vector3f(); oUnit.offset.x = unit.offset.x; oUnit.offset.y = unit.offset.y; oUnit.offset.z = unit.offset.z; oUnit.speed = unit.speed; oUnit.waves = unit.waves; oUnit.waveDelay = unit.waveDelay; oUnit.hitArea = ConvertSkillShape(unit.hitArea); return(oUnit); }
public static SkillFollow ConvertSkillFollow(SkillUnit.SkillFollow unit) { SkillFollow oUnit = new SkillFollow(); oUnit.id = unit.id; oUnit.maxFollowTime = unit.maxFollowTime; oUnit.offset = Vector3.zero; if (unit.offset != null) { oUnit.offset = new Vector3(unit.offset.x, unit.offset.y, unit.offset.z); } oUnit.speed = unit.speed; oUnit.waves = unit.waves; oUnit.waveDelay = unit.waveDelay; oUnit.hitArea = ConvertSkillShape(unit.hitArea); return(oUnit); }