Exemplo n.º 1
0
        // Awake()
        //{
        //engineM = Engine.GetInit();

        //lDialog = new System.Windows.Forms.OpenFileDialog();
        //lcDialog = new System.Windows.Forms.OpenFileDialog();
        //sDialog = new System.Windows.Forms.SaveFileDialog();

        //    lDialog.RestoreDirectory = true;
        //    lDialog.InitialDirectory = @"C:\\";
        //    lDialog.Title = "Please select the Metafile file. ";
        //    lDialog.Filter = "MGPL Files (*.mgpl) | *.mgpl |All Files | *.* ";

        //    lcDialog.RestoreDirectory = true;
        //    lcDialog.InitialDirectory = @"C:\\";
        //    lcDialog.Title = "Please select the Metagraph json file. ";
        //    lcDialog.Filter = "JSON Files (*.json) | *.json |All Files | *.* ";

        //    sDialog.AddExtension = true;
        //    sDialog.OverwritePrompt = true;
        //    sDialog.RestoreDirectory = true;
        //    sDialog.InitialDirectory = @"C:\\";
        //    sDialog.Title = "Save the Metagraph json file. ";
        //    sDialog.Filter = "JSON Files (*.json) | *.json |All Files | *.* ";
        //}

        //public void ReloadFile()
        //{
        //    if (engineM.lastLoadType == "MGPL")
        //    {
        //        string content = File.ReadAllText(fileName);
        //        readerM.ReadCode(content);
        //        logicM.LogicAdd();
        //        predicateM.BuildGraphs();
        //    }
        //    else if (engineM.lastLoadType == "JSON")
        //    {
        //        structureM.LoadingJson(fileName);
        //    }
        //}

        private void Start()
        {
            Instance = this;
            //readerM = Reader.GetInit();
            //logicM = LogicModule.GetInit();
            //predicateM = PredicateModule.GetInit();
            changeM = ChangeModule.GetInit();

            structureM = StructureModule.GetInit();
        }
Exemplo n.º 2
0
 private void Start()
 {
     predicateM = PredicateModule.GetInit();
     changeM    = ChangeModule.GetInit();
 }
Exemplo n.º 3
0
 private void Start()
 {
     structureM = StructureModule.GetInit();
     changeM    = ChangeModule.GetInit();
 }
Exemplo n.º 4
0
 private void Awake()
 {
     Instance   = this;
     freeCamera = Camera.main.GetComponent <FreeCamera>();
 }