Exemple #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();
        }
Exemple #2
0
        private void Start()
        {
            interactionM = InteractionModule.GetInit();
            structureM   = StructureModule.GetInit();
            predicateM   = PredicateModule.GetInit();
            resourceM    = ResourceManager.GetInstance();
            guiChangeM   = GUIChangeModule.GetInit();

            //markerObject = Instantiate(resourceM.GetPrefab("Marker"), positionSelected, Quaternion.Euler(0f, 0f, 0f));
            //markerObject.SetActive(false);
        }
Exemple #3
0
 private void Start()
 {
     structureM = StructureModule.GetInit();
 }
Exemple #4
0
 private void Start()
 {
     structureM      = StructureModule.GetInit();
     structureDetail = GetComponent <Text>();
 }
Exemple #5
0
 private void Start()
 {
     structureModule = StructureModule.GetInit();
     predicateModule = PredicateModule.GetInit();
 }
Exemple #6
0
 private void Start()
 {
     predicateM = PredicateModule.GetInit();
     structureM = StructureModule.GetInit();
     changeM    = ChangeModule.GetInit();
 }