示例#1
0
 private void Awake()
 {
     if (m_instance)
     {
         Destroy(gameObject);
     }
     else
     {
         m_instance = this;
         DontDestroyOnLoad(gameObject);
     }
 }
 public static void IterateTree(ITask tree, NodeInspector inspectorCallback, int maxDepth = -1)
 {
     IterateTree(tree, null, 0, maxDepth, inspectorCallback);
 }