示例#1
0
 public void Draw(Color color, int width = 1)
 {
     for (var i = 0; i <= Points.Count - 1; i++)
     {
         var nextIndex = (Points.Count - 1 == i) ? 0 : (i + 1);
         Utils.DrawLineInWorld(Points[i].To3D(), Points[nextIndex].To3D(), width, color);
     }
 }
示例#2
0
        public void Draw(Color color, Color missileColor, int width = 1)
        {
            if (!GetValue <bool>("Draw"))
            {
                return;
            }
            DrawingPolygon.Draw(color, width);

            if (SpellData.Type == SkillShotType.SkillshotMissileLine)
            {
                var position = GetMissilePosition(0);
                Utils.DrawLineInWorld(
                    (position + SpellData.Radius * Direction.Perpendicular()).To3D(),
                    (position - SpellData.Radius * Direction.Perpendicular()).To3D(), 2, missileColor);
            }
        }