// 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();
     }
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     manager = TutorialController.GetComponent<TutorialEventManager>();
 }