Exemple #1
0
 //Used for initialization
 private void Start()
 {
     if (fileManager == null)
     {
         fileManager = GameObject.Find("FileManagerView").GetComponent <Motion3DFileManager>();
     }
 }
Exemple #2
0
        public void FileManager_LoadButtonPress()
        {
            Motion3DFileManager      fileManager = fileManagerView.GetComponent <Motion3DFileManager>();
            Motion3DProblemIOManager input       = new Motion3DProblemIOManager();

            //Load the data
            input.Load(fileManager.selectedFilename);
            //Apply the new problem configuration
            input.Apply(simController);
            //Close the file manager menu
            fileManagerView.SetActive(false);
        }