public void CopyWWdeliveryDoc() { conf Config = new conf(); try { File.Copy(pdfName, Config.outPath + "Rok_20" + year + "\\WW\\" + docName + "_DD.pdf"); StreamWriter WW; WW = File.AppendText(fileLog); WW.WriteLine(Config.outPath + "Rok_20" + year + "\\WW\\" + docName + "_DD.pdf"); WW.Close(); } catch (IOException) { FileInfo infoFirst = new FileInfo(Config.outPath + "Rok_20" + year + "\\WW\\" + docName + "_DD.pdf"); long byteFirst = infoFirst.Length; FileInfo infoSecond = new FileInfo(pdfName); long byteSecond = infoSecond.Length; if (byteFirst != byteSecond) { File.Copy(pdfName, Config.outPath + "Rok_20" + year + "\\duplikaty\\" + docName + "_DD.pdf"); StreamWriter WW2; WW2 = File.AppendText(fileLog); WW2.WriteLine("!! DUPLIKAT !! " + Config.outPath + "Rok_20" + year + "\\do_polaczenia\\" + docName + "_DD.pdf" + " !! DUPLIKAT !!"); WW2.Close(); } else { StreamWriter WW3; WW3 = File.AppendText(fileLog); WW3.WriteLine("!! Identyczny plik istnieje !! " + Config.outPath + "Rok_20" + year + "\\" + docName + "_DD.pdf" + " !! Identyczny plik istnieje !!"); WW3.Close(); } } }
// Use this for initialization void Start() { //SEGame1 = game1; //SEGame1 = game1; Button ww1 = WW1.GetComponent <Button> (); Button ww2 = WW2.GetComponent <Button> (); //.onClick.AddListener (delegate{changeScene("ww1_selectShips");}); //ww2.onClick.AddListener (delegate{changeScene("ww2_selectShips");}); ww1.onClick.AddListener(chooseww1Ships); ww2.onClick.AddListener(chooseww2Ships); ww1Ships.gameObject.SetActive(false); ww2Ships.gameObject.SetActive(false); game1.SetActive(false); game2.SetActive(false); }