Example #1
0
 public void Draw(LineRenderer r)
 {
     if (Dead)
     {
         return;
     }
     if (upgradedTimer > 0)
     {
         using (var p = new Pen(new LinearGradientBrush(new Point(x - 17, y), new Point(x + 17, y), uc1, uc2)))
             upgradedView.Draw(r, x, y, p);
     }
     else
     {
         using (var p = new Pen(new LinearGradientBrush(new Point(x - 17, y), new Point(x + 17, y), c1, c2)))
             normalView.Draw(r, x, y, p);
     }
 }
Example #2
0
        public void Draw(LineRenderer r)
        {
            if (Dead)
            {
                return;
            }
            using (var p = new Pen(new LinearGradientBrush(new Point(x - radius, y - radius), new Point(x + radius, y + radius), c1, c2))) {
                switch (size)
                {
                case 1: smallView.Draw(r, x, y, p); break;

                case 2: mediumView.Draw(r, x, y, p); break;

                case 3: largeView.Draw(r, x, y, p); break;
                }
            }
        }
Example #3
0
 private void Draw(LineRenderer r, LineRenderer.Path view, int R, int G, int B)
 {
     using (var p = new Pen(Color.FromArgb(R, G, B))) view.Draw(r, x, y, p);
 }