Пример #1
0
 public void MouseDrag(int x, int y, int previousX, int previousY)
 {
     for (int i = 0; i < TemporaryLayer.Colors.Length; i++)
     {
         TemporaryLayer.Colors[i] = new UnityEngine.Color(1f, 1f, 1f, 0f);
     }
     TemporaryLayer.DrawLine(StartX, StartY, x, y, Editor.CurrentColor);
     Editor.CurrentPattern.CurrentSubPattern.UpdateImage();
 }
Пример #2
0
 public void MouseDrag(int x, int y, int previousX, int previousY)
 {
     TemporaryLayer.Bitmap.Clear();
     TemporaryLayer.DrawLine(StartX, StartY, x, y, Editor.CurrentColor);
     Editor.CurrentPattern.CurrentSubPattern.UpdateImage();
 }