’­ А4.6.1f1ўџџџsMonoScriptBaseџџџџ€ unsigned intm_ObjectHideFlagsPPtrm_PrefabParentObjectintm_FileIDintm_PathIDPPtrm_PrefabInternalintm_FileIDintm_PathIDstringm_Nameџџџџ€ArrayArrayџџџџ @intsize chardata stringm_Scriptџџџџ €ArrayArrayџџџџ @intsizechardatamapm_DefaultReferencesџџџџ€ArrayArrayџџџџ€intsizepairdataџџџџ€stringfirstџџџџ€ArrayArrayџџџџ@intsizechardataPPtrsecondintm_FileIDintm_PathIDPPtrm_Iconintm_FileIDintm_PathIDPPtrm_EditorGraphData€intm_FileID€intm_PathID €intm_ExecutionOrder!stringm_ClassNameџџџџ"€ArrayArrayџџџџ#@intsize$chardata%stringm_Namespaceџџџџ&€ArrayArrayџџџџ'@intsize(chardata)stringm_AssemblyNameџџџџ*€ArrayArrayџџџџ+@intsize,chardata-boolm_IsEditorScript.AssetMetaDataBaseџџџџ€ unsigned intm_ObjectHideFlagsGUIDguidunsigned intdata[0]unsigned intdata[1]unsigned intdata[2]unsigned intdata[3]stringpathNameџџџџ€ArrayArrayџџџџ@intsize chardata unsigned intoriginalChangeset stringoriginalNameџџџџ €ArrayArrayџџџџ @intsizechardataGUIDoriginalParentunsigned intdata[0]unsigned intdata[1]unsigned intdata[2]unsigned intdata[3]MdFouroriginalDigestџџџџ€TypelessDatamd4 hashџџџџ@intsizeUInt8datavectorlabelsџџџџ€ArrayArrayџџџџ€intsizestringdataџџџџ€ArrayArrayџџџџ@intsizechardataUInt64assetStoreRef  MonoImporterBaseџџџџ€unsigned intm_ObjectHideFlagsPPtrm_PrefabParentObjectintm_FileIDintm_PathIDPPtrm_PrefabInternalintm_FileIDintm_PathIDstringm_Nameџџџџ€ArrayArrayџџџџ @intsize chardata vectorm_DefaultReferencesџџџџ €ArrayArrayџџџџ €intsizepairdataџџџџ€stringfirstџџџџ€ArrayArrayџџџџ@intsizechardataPPtrsecondintm_FileIDintm_PathIDSInt16executionOrder@PPtricon@intm_FileIDintm_PathIDstringm_UserDataџџџџ€ArrayArrayџџџџ@intsizechardatalp,  рyЏ ]ssŠі*;J‹ АE=БеЩAssets/ruutudeloomine2.csruutudeloomine2цusing System; using System.IO; using System.Linq; using UnityEngine; using System.Collections; using System.Collections.Generic; public class ruutudeloomine2 : MonoBehaviour { List ruudud=new List(); void Start () { //Lugege uute ruutude koordinaadid sisse failist GameObject ruut=(GameObject)GameObject.Find ("Ruut"); for (int x=-5; x<5; x=x+2) { GameObject uusRuut=(GameObject)Instantiate (ruut); uusRuut.transform.position=new Vector3(x, 0, 0); uusRuut.renderer.material.color=Color.black; ruudud.Add(uusRuut); } } void OnGUI(){ if (GUI.Button (new Rect (310, 10, 80, 20), "Vajuta")) { foreach (GameObject ruut in ruudud.Where( r => r.transform.position.x>0)) { ruut.transform.position += Vector3.right; } // File.WriteAllLines("D:\\dotnet\\unity\\ruudukohad.txt", // ruudud.Select (r => r.transform.position.x.ToString()).ToArray()); } //Salvestage ruutude uued koordinaadid faili } } ruutudeloomine2Assembly-CSharp.dllPreviewAssetData