mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 18:00:26 +00:00
3.10.0
This commit is contained in:
@@ -166,8 +166,18 @@ namespace XCharts.Runtime
|
||||
/// </summary>
|
||||
public Action<Legend, int, string> onLegendExit { set { m_OnLegendExit = value; } internal get { return m_OnLegendExit; } }
|
||||
|
||||
[Obsolete("No need to call Init() anymore.", true)]
|
||||
public void Init(bool defaultChart = true) { }
|
||||
public void Init(bool defaultChart = true)
|
||||
{
|
||||
if (defaultChart)
|
||||
{
|
||||
OnInit();
|
||||
DefaultChart();
|
||||
}
|
||||
else
|
||||
{
|
||||
OnBeforeSerialize();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Redraw chart in next frame.
|
||||
|
||||
@@ -136,7 +136,6 @@ namespace XCharts.Runtime
|
||||
m_Settings = Settings.DefaultSettings;
|
||||
CheckTheme(true);
|
||||
base.Awake();
|
||||
CheckChartInit();
|
||||
InitComponentHandlers();
|
||||
InitSerieHandlers();
|
||||
AnimationReset();
|
||||
|
||||
Reference in New Issue
Block a user