完成Note预制体的创建体系
This commit is contained in:
@@ -43,6 +43,11 @@ namespace Demo.Game
|
||||
|
||||
public void EnableScript(string sourcePath, string scriptPath, GameController parent)
|
||||
{
|
||||
AllScriptableObjectCounter = 0;
|
||||
if (AllScriptableObjectCounterHierarchyItem == null)
|
||||
{
|
||||
AllScriptableObjectCounterHierarchyItem = HierarchyWindow.instance.CreateRootItemEntryWithBinders(typeof(ScriptableObject))[0];
|
||||
}
|
||||
base.EnableScript(sourcePath, scriptPath, nameof(RootObject), null);
|
||||
RootGameController = parent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user