jÝ5.3.1f1ţ˙˙˙s˙8-l'€Łć„hŒÎA,Œ€7€˙˙˙˙€Ś€˛€Ő€ ހ.€†€Ä€ ހ.€H€Ť€˙˙˙˙€1€1€˙˙˙˙ @ހ€ Q€j€ H€ę€˙˙˙˙ €1€1€˙˙˙˙ @ހ€Q€j€ń€(˙˙˙˙€1€1€˙˙˙˙€ހ€€j€˙˙˙˙€H€›€˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€y€ € ހ.€y€< ހ.€ހCH€T˙˙˙˙€1€1€˙˙˙˙ @ހ€!Q€j€"H€`˙˙˙˙#€1€1€˙˙˙˙$@ހ€%Q€j€&H€l˙˙˙˙'€1€1€˙˙˙˙(@ހ€)Q€j€*L€{+PPtrm_FileIDm_PathIDm_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespacem_AssemblyNamem_IsEditorScriptČ0ĹňĂôL.`?^Ů0D7€˙˙˙˙€Ś€˛€ЀŚ€Ś€Ś€#Ś€+H€3˙˙˙˙€1€1€˙˙˙˙@ހ€ Q€j€ ™€< Ś€H H€Z˙˙˙˙ €1€1€˙˙˙˙@ހ€Q€j€ЀgŚ€Ś€Ś€#Ś€+v~ € €– €Ÿ €¨ €ą €ş €Ă €Ě €Ő €Ţ  €ç! €ń" €ű# €$ €% €&Ő€#˙˙˙˙'€1€1€˙˙˙˙(€ހ€)H€j€˙˙˙˙*€1€1€˙˙˙˙+@ހ€,Q€j€-™€*.ހ8/AssetMetaDataguiddata[0]data[1]data[2]data[3]pathNametimeCreatedoriginalChangesetoriginalNameoriginalParentHash128originalDigestbytes[0]bytes[1]bytes[2]bytes[3]bytes[4]bytes[5]bytes[6]bytes[7]bytes[8]bytes[9]bytes[10]bytes[11]bytes[12]bytes[13]bytes[14]bytes[15]labelsassetStoreReflicenseType z{ď@îČă5^(H'7€˙˙˙˙€Ś€˛€ Ő€ ހ#.€,†€Ä€ ހ#.€,H€Ť€˙˙˙˙€1€1€˙˙˙˙ @ހ€ Q€j€ Ő€5˙˙˙˙ €1€1€˙˙˙˙ €ހ€€j€˙˙˙˙€H€›€˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€y€ € ހ#.€, €I@ž€X @ހ#.€,H€]˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€H€h˙˙˙˙€1€1€˙˙˙˙ @ހ€!Q€j€"H€z˙˙˙˙#€1€1€˙˙˙˙$@ހ€%Q€j€&MonoImporterPPtrm_FileIDm_PathIDm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariantt˙˙x@  ˙˙ŕyŻ¸%ss˙˙š?ÝňkóUIŚŻŞŘ.řń>Assets/Plaatideloomine.csń6éVPlaatideloomineŠusing UnityEngine; using System.Collections; public class Plaatideloomine : MonoBehaviour { int nr = -1; const int kogus = 5; GameObject valitudNupp = null; GameObject valitudPlaat = null; GameObject[] plaadid = new GameObject[kogus]; void Start () { GameObject plaat = (GameObject)GameObject.Find("kuubik"); for (int i = 0; i < kogus; i++) { GameObject uusPlaat = (GameObject)Instantiate(plaat); plaadid[i] = uusPlaat; uusPlaat.transform.position = new Vector3((float)(-2-i/2.0), i, 0); if (i % 2 == 0) { GameObject uusNupp = (GameObject)Instantiate(GameObject.Find("nupp")); uusNupp.transform.position= new Vector3((float)(-2 - i / 2.0), i+0.5f, 0); uusPlaat.GetComponent().material.color = Color.green; } else { uusPlaat.GetComponent().material.color = Color.yellow; } } } RaycastHit hit = new RaycastHit(); void Update() { if (Input.GetKeyDown(KeyCode.Mouse0)) { Debug.Log(nr); Ray kiir = Camera.main.ScreenPointToRay(Input.mousePosition); if (Physics.Raycast(kiir, out hit, 100)) { hit.collider.GetComponent().material.color = Color.blue; if (nr == -1) { valitudNupp = hit.collider.gameObject; nr = 1; } else { valitudPlaat = hit.collider.gameObject; nr = -1; valitudNupp.transform.position = valitudPlaat.transform.position + Vector3.up * 0.5f; } } } } } PlaatideloomineAssembly-CSharp.dll