整理代码

This commit is contained in:
monitor1394
2021-07-01 07:35:55 +08:00
parent 0e1d5cc81d
commit 18391881d7
3 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,6 @@
/* */ /* */
/************************************************/ /************************************************/
using System.Collections.Generic;
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
@@ -26,6 +25,7 @@ namespace XCharts
PropertyField(prop, "m_ToColor"); PropertyField(prop, "m_ToColor");
PropertyField(prop, "m_ToColor2"); PropertyField(prop, "m_ToColor2");
PropertyField(prop, "m_Width"); PropertyField(prop, "m_Width");
PropertyField(prop, "m_Length");
PropertyField(prop, "m_Opacity"); PropertyField(prop, "m_Opacity");
--EditorGUI.indentLevel; --EditorGUI.indentLevel;
} }

View File

@@ -13,7 +13,7 @@ namespace XCharts
[System.Obsolete] [System.Obsolete]
public class XChartsBuild : IPreprocessBuild, IPostprocessBuild public class XChartsBuild : IPreprocessBuild, IPostprocessBuild
{ {
public int callbackOrder => 1; public int callbackOrder { get { return 1; } }
public void OnPostprocessBuild(BuildTarget target, string path) public void OnPostprocessBuild(BuildTarget target, string path)
{ {

View File

@@ -172,11 +172,11 @@ namespace XCharts
return null; return null;
} }
internal void RefreshBasePainter() public void RefreshBasePainter()
{ {
m_Painter.Refresh(); m_Painter.Refresh();
} }
internal void RefreshTopPainter() public void RefreshTopPainter()
{ {
m_PainterTop.Refresh(); m_PainterTop.Refresh();
} }
@@ -201,7 +201,7 @@ namespace XCharts
} }
} }
internal void SetPainterActive(int index, bool flag) public void SetPainterActive(int index, bool flag)
{ {
var painter = GetPainter(index); var painter = GetPainter(index);
if (painter == null) return; if (painter == null) return;