// Use this for initialization
	void Start () {
		if (instance == null) {
			instance = this;
			DontDestroyOnLoad (gameObject);
			URL = Application.persistentDataPath + "/Medicaldata.txt";
			if (stream == null) {
				stream = File.AppendText(URL);
			}
		} 
		else {
			Destroy (gameObject);
		}
	}
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
         URL = Application.persistentDataPath + "/Medicaldata.txt";
         if (stream == null)
         {
             stream = File.AppendText(URL);
         }
     }
     else
     {
         Destroy(gameObject);
     }
 }
 // Use this for initialization
 void Start()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
         URL = Path.GetFileName(@"/MedicDataBO.txt");
         if (stream == null)
         {
             stream = File.AppendText(URL);
         }
     }
     else
     {
         Destroy(gameObject);
     }
 }