|
@@ -145,9 +145,12 @@ namespace GameEditorPlugin.Win32.Editor
|
|
|
if (Selected)
|
|
|
{
|
|
|
g.FillEllipse(brush, mLocalBounds);
|
|
|
-
|
|
|
- g.DrawArc(pen_hitbody, -Info.BodyHitSize, -Info.BodyHitSize, Info.BodyHitSize * 2, Info.BodyHitSize * 2, 0, 360);
|
|
|
- g.DrawArc(pen_guardrange, -Info.GuardRange, -Info.GuardRange, Info.GuardRange * 2, Info.GuardRange * 2, 0, 360);
|
|
|
+ if(Info != null)
|
|
|
+ {
|
|
|
+ g.DrawArc(pen_hitbody, -Info.BodyHitSize, -Info.BodyHitSize, Info.BodyHitSize * 2, Info.BodyHitSize * 2, 0, 360);
|
|
|
+ g.DrawArc(pen_guardrange, -Info.GuardRange, -Info.GuardRange, Info.GuardRange * 2, Info.GuardRange * 2, 0, 360);
|
|
|
+ }
|
|
|
+
|
|
|
g.DrawLine(pen_hight, 0, 0,
|
|
|
(float)Math.Cos(Data.Direction) * mLocalBounds.Width,
|
|
|
(float)Math.Sin(Data.Direction) * mLocalBounds.Width);
|