Пример #1
0
 public static void LoadData(string path)
 {
     Debug.Log("press load");
     ClearOperators();
     //destroy any current nodes in observer
     if (observer.GetOperators() != null)
     {
         for (int i = observer.GetOperators().Count - 1; i >= 0; i--)
         {
             observer.GetOperators()[i].Disable();
             observer.DestroyOperator(observer.GetOperators()[i]);
         }
     }
     genericOperatorContainer = LoadOperators(path);
     foreach (OperatorData data in genericOperatorContainer.operators)
     {
         SaveLoadController.CreateGenericOperator(data);
     }
     root = observer.GetOperators()[0];
     instance.StartCoroutine(instance.ReloadData(root));
 }