string AddList(string data) { if (orderLength > 0) { data = ECCommons.FixLength(current, 0, orderLength - 1) + "." + data; current++; if (current >= Mathf.Pow(10, orderLength - 1)) { current = 0; } } return(data); }
public void Save(string path) { ECFile store = new ECFile(path); if (!store.DirectoryExists()) { store.CreateDirectory(); } path = store.directory + "/" + store.file + "_"; totalPaint++; while (ECFile.FileExists(path + ECCommons.FixLength(totalPaint, 0, 3) + "." + store.extension)) { totalPaint++; } paint.SaveTexture(path + ECCommons.FixLength(totalPaint, 0, 3) + "." + store.extension); }
// Use this for initialization void Start() { if (orderLength > 0) { orderLength++; } receiverFolder = directory + "/" + receiverFolder; transmitterFolder = directory + "/" + transmitterFolder; if (startUpClear) { if (ReceiverFound()) { Directory.Delete(receiverFolder, true); } if (TransmitterFound()) { Directory.Delete(transmitterFolder, true); } } transferedData = ECCommons.FixLength(0, 0, orderLength); }