’} °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ÿÿÿÿ@intsizechardatahh,  ày¯˜5ssSÇuµ²¿tN¼íýáól[“Assets/ruutudeloomine.csruutudeloomineÀusing System; using System.Linq; using UnityEngine; using System.Collections; using System.Collections.Generic; public class ruutudeloomine : MonoBehaviour { // Use this for initialization 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; } } //Salvestage ruutude uued koordinaadid faili } public RaycastHit tabamus = new RaycastHit(); void Update () { if(Input.GetKey(KeyCode.Mouse0)){ Ray kiir=Camera.main.ScreenPointToRay(Input.mousePosition); if(Physics.Raycast(kiir, out tabamus, 100)){ if(tabamus.collider.renderer.material.color==Color.black){ tabamus.collider.renderer.material.color=Color.red; GameObject kera=(GameObject)GameObject.Find ("Kera"); GameObject uusKera=(GameObject)Instantiate(kera); uusKera.transform.position=new Vector3(tabamus.collider.transform.position.x, 1, 0); //Pange vastavalt mängule kerad ja kuubikud tekkima kordamööda } } } } }ruutudeloomineAssembly-CSharp.dllPreviewAssetData