完成Note预制体的创建体系
This commit is contained in:
@@ -618,6 +618,8 @@ namespace Demo
|
||||
// Hierarchy
|
||||
|
||||
public PropertiesWindow.ItemEntry MyHierarchyItem;
|
||||
public static PropertiesWindow.ItemEntry AllScriptableObjectCounterHierarchyItem;
|
||||
public static int AllScriptableObjectCounter = 0;
|
||||
|
||||
// Cache
|
||||
|
||||
@@ -1003,6 +1005,11 @@ namespace Demo
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
// 增数
|
||||
{
|
||||
AllScriptableObjectCounter++;
|
||||
AllScriptableObjectCounterHierarchyItem.GetHierarchyItem().text = $"ScriptableObjectCount: {AllScriptableObjectCounter}";
|
||||
}
|
||||
yield return ParseScript2Expr(script);
|
||||
IsEnableUpdate = true;
|
||||
}
|
||||
@@ -1040,6 +1047,9 @@ namespace Demo
|
||||
this.name = "<Unload>";
|
||||
// 清理Cache
|
||||
DDTCache.Clear();
|
||||
// 减数
|
||||
AllScriptableObjectCounter--;
|
||||
AllScriptableObjectCounterHierarchyItem.GetHierarchyItem().text = $"ScriptableObjectCount: {AllScriptableObjectCounter}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user