优化代码,修复报错

This commit is contained in:
monitor1394
2020-05-10 00:20:40 +08:00
parent 5356865c40
commit 3bb5ee5648
6 changed files with 64 additions and 5 deletions

View File

@@ -18,6 +18,23 @@ namespace XCharts
/// </summary>
public partial class BaseChart
{
/// <summary>
/// The name of chart.
/// </summary>
public string chartName
{
get { return m_ChartName; }
set
{
if (XChartsMgr.Instance.ContainsChart(value)) Debug.LogError("chartName repeated:" + value);
else
{
m_ChartName = value;
m_ChartUUID = value;
}
}
}
public string chartUUID { get { return m_ChartUUID; } }
/// <summary>
/// The theme info.
/// </summary>