static void ShowScenarioDataPath(MenuCommand menuCommand) { DataSync sync = menuCommand.context as DataSync; //EditorUtility.RevealInFinder(Application.dataPath + "/" + sync.scenarioDataPath); EditorUtility.RevealInFinder(sync.GetScenarioPath()); }
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); } }
static void ClearScenarioData(MenuCommand menuCommand) { DataSync sync = menuCommand.context as DataSync; sync.ClearScenarioData(); }
static void LoadScenarioData(MenuCommand menuCommand) { DataSync sync = menuCommand.context as DataSync; sync.ReadScenario(); }
static void SaveScenarioData(MenuCommand menuCommand) { DataSync sync = menuCommand.context as DataSync; sync.WriteScenario(); }
static void UpdateScenarioData(MenuCommand menuCommand) { DataSync sync = menuCommand.context as DataSync; sync.UpdateScenarioData(); }
static void SaveScenario(MenuCommand command) { DataSync sync = FindObjectOfType <DataSync>(); sync.SaveDataFromScene(); }
static void LoadScenario(MenuCommand command) { DataSync sync = FindObjectOfType <DataSync>(); sync.LoadDataToScene(); }