Exemple #1
0
        static void ShowScenarioDataPath(MenuCommand menuCommand)
        {
            DataSync sync = menuCommand.context as DataSync;

            //EditorUtility.RevealInFinder(Application.dataPath + "/" + sync.scenarioDataPath);
            EditorUtility.RevealInFinder(sync.GetScenarioPath());
        }
Exemple #2
0
 protected virtual void Awake()
 {
     dataSync = GetComponent <DataSync>();
     if (progressImage)
     {
         progressImage.gameObject.SetActive(false);
         progressImage.fillAmount = 0.0f;
     }
     if (fadeOutImage)
     {
         initFadeColor      = fadeOutImage.color;
         fadeOutImage.color = Color.clear;
         fadeOutImage.gameObject.SetActive(false);
     }
 }
Exemple #3
0
        static void ClearScenarioData(MenuCommand menuCommand)
        {
            DataSync sync = menuCommand.context as DataSync;

            sync.ClearScenarioData();
        }
Exemple #4
0
        static void LoadScenarioData(MenuCommand menuCommand)
        {
            DataSync sync = menuCommand.context as DataSync;

            sync.ReadScenario();
        }
Exemple #5
0
        static void SaveScenarioData(MenuCommand menuCommand)
        {
            DataSync sync = menuCommand.context as DataSync;

            sync.WriteScenario();
        }
Exemple #6
0
        static void UpdateScenarioData(MenuCommand menuCommand)
        {
            DataSync sync = menuCommand.context as DataSync;

            sync.UpdateScenarioData();
        }
Exemple #7
0
        static void SaveScenario(MenuCommand command)
        {
            DataSync sync = FindObjectOfType <DataSync>();

            sync.SaveDataFromScene();
        }
Exemple #8
0
        static void LoadScenario(MenuCommand command)
        {
            DataSync sync = FindObjectOfType <DataSync>();

            sync.LoadDataToScene();
        }