public void DrawPaint(object sender, PaintEventArgs e) { if (!drawing) { return; } Graphics g = e.Graphics; g.CompositingQuality = CompositingQuality.HighQuality; g.SmoothingMode = SmoothingMode.AntiAlias; g.InterpolationMode = InterpolationMode.Low; g.TextRenderingHint = TextRenderingHint.AntiAlias; g.ScaleTransform(scalar, scalar); try { Map?.Draw(g); DrawWhite?.Invoke(g); Blast.DrawAll(g); DrawTail?.Invoke(g); DrawBullet?.Invoke(g); DrawHead?.Invoke(g); DrawKeys?.Invoke(g); DrawAnimation?.Invoke(g); if (ActiveKeys.Contains(Leader)) { Map.DrawCrown(g); } MVP.Draw(g); } catch (Exception) { } }
public override void OnInspectorGUI() { this.DrawDefaultInspector(); DrawTail myTarget = (DrawTail)target; myTarget.TailLength = EditorGUILayout.FloatField("Tail Length", myTarget.TailLength); myTarget.SmoothFactor = EditorGUILayout.FloatField("Smooth Factor", myTarget.SmoothFactor); }