// Start is called before the first frame update private void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); return; } if (!Directory.Exists(Application.persistentDataPath + "/Resources")) { Directory.CreateDirectory(Application.persistentDataPath + "/Resources"); } if (!File.Exists(Application.persistentDataPath + path)) { initializeXml(); } }
// Use this for initialization void Start() { manager = TutorialController.GetComponent<TutorialEventManager>(); }