From 6aa72edd9a45699191a9c18d3aef5bd7f3bdf666 Mon Sep 17 00:00:00 2001 From: meteor <> Date: Mon, 21 Oct 2024 12:10:41 +0200 Subject: [PATCH] k k --- Assets/New Terrain 1.asset | Bin 1514861 -> 1514744 bytes Create.cs | 2 +- choiceproduct.cs | 68 ++++++++++++++++++------------------- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Assets/New Terrain 1.asset b/Assets/New Terrain 1.asset index bf69dff1e969e60efb51459cda6c6b444bd4cb97..f03468158bae86d022c180a034df85cf63eae077 100644 GIT binary patch delta 884 zcmXBQe@xVM7zc1Z-_Q5+`wqFh559K(bmjMue8L)>`Oh{>v^{4dG`GAq{rje z#^NuGklRYIvVq6ZdO!T4Ryj=TShPGffLmSJnCgyH; z@K&kY<>J;`+*knh>)cc}0-M~wDO8=?5y1X!?uQeoFJNmQv8Dfof3%-)*Qg; zF4h!5WPtratr=v$AT!7Wwe#XKM~s#kx~4dWHT{LoMX))b9`N)%efgyPo`I}z>U-%wob=c5FJ1N;g_&meDfF#is>1g{P8xP#x5JpBm1 z4~i)VN5bMN#T)rz6~V_*G40^hLXi%jy<8}Yy?2NUE?O%@MqqoD_#%u|P2w4W{)A|a zy4vsa*;Jnh*&k239BX!qt|EN&wpcKZ_Sy0bi(vM+nAwQ&%c7Fv+MlBH9(1ghYbnMm z?N@u0Lh`Wea$Rk*e0Iw@8p75i@@s~bN98<4*>U-Nkv;l}oJHrS za#sxhq-E37Xn0sP$1w7uS{?fT(CytSXulMOL0fe~W3)%zO#T~Tu2)S(acojuCicyg zis8MK$|D6@WNBrxywKW9ifg~$Xs(!#8I3DbYLCRu&s3~q@g+A5&&5!UZXpP5)&&mH z_U?TmXfJNy3R~{eg#@j2+KR>9qH#CRcE2JR${O?-U2L6S$0Jy1(v*N~)yw)(L=5$z z#BXY=(fWYd(QJQ6no65LYzj~@Y@RY0IBg=XO--3NmYp$^#mCOinHXk;Z^OMP-Rz5u kVmJjN;JL}O)D!fCJh@nr6Rz_A3!s`lu>b%7 delta 1078 zcmX9-e@vBC820<xE7HSzwlt`8kr?1bvd-Gd$2G?YCKGe zOc77kB?ub8M1oZ0BHtaN&+5pB*U}>t*?%7mr66zEKu42cX)9eMF#iN?O@W3Q`t?^B zS-+a)??ku8CRU5`+a|V8Aa8DA)he;;2&?oXFP&xcME=#sen;_LKjTFH^clN>Vr-Dj zYN{N+2*9N%n-0PIKd@bCaPtPcwaRua$5qR5TzP4X`(#Uu8{ikllp0OKHgdPYnkwTu zTEOx%#x)BjpEI%xAkp>ziSZs|M8(>Ajek_ezJ8-Zhw%ZUQ|;~^G{UOi3sEB;LGJVM zn9}tgUm(J@R^Sq@tj*#X@Wv{>Qso>C@XP89rk44Ja z1L87QGc;XCMv7>Kkl2o< zbBDwpAM(>D#7W9r%U{H@_G^u$F~ zgXWIxGOI%ne%)N3M%7s5M7Qb5hT9f}q2p%11>w`?J(`+P$4PTFbak1Z2GFqVqB*Au zDHt_FC~HQ|3{5u2%uE!=VrHv=)T?Gr3tBpk+-@3v*s;}$Xb>&6GSwSRmRW@wINPjF z4&CL}wE7JkIrE3`2nRJ!)S7BuGNc3rh>jM_zVAZlmA)u{cF4S5&r3@V?B+0}StAZA}&qq%46f3sEX u_1xLK2{~Ho_($-9aW|f%x$i)-LJ}ewaTg*5u@aGr@FCI==>W-IvHKr_D_y7n diff --git a/Create.cs b/Create.cs index 6463220..853a767 100644 --- a/Create.cs +++ b/Create.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using UnityEngine; diff --git a/choiceproduct.cs b/choiceproduct.cs index 870c052..28c70df 100644 --- a/choiceproduct.cs +++ b/choiceproduct.cs @@ -1,35 +1,35 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class Choicepr : MonoBehaviour -{ - static string[] Products = { "apple", "sword", "bow", "arrow", "dog" }; //zamist tego wpisać zmienną w której będą rzeczy które są w sklepie - List FinalProducts = new List(); //lista w której zamisano to co klięt kupi - List IndexProducts = new List(); - int Index; - - void Start() - { - for(int i = 0; i < Products.Length; i++) - { - IndexProducts.Add(i); - } - - int AmountProducts = Random.Range(1, Products.Length + 1); - - for (int i = 0; i < AmountProducts; i++) - { - Index = Random.Range(0, IndexProducts.Count); - FinalProducts.Add(Products[IndexProducts[Index]]); - IndexProducts.RemoveAt(Index); - } - /* dla testu - for (int i = 0; i < FinalProducts.Count; i++) - { - Debug.Log("Product " + i + ": " + FinalProducts[i]); - } - */ - } - +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Choicepr : MonoBehaviour +{ + static string[] Products = { "apple", "sword", "bow", "arrow", "dog" }; //zamist tego wpisać zmienną w której będą rzeczy które są w sklepie + List FinalProducts = new List(); //lista w której zamisano to co klięt kupi + List IndexProducts = new List(); + int Index; + + void Start() + { + for(int i = 0; i < Products.Length; i++) + { + IndexProducts.Add(i); + } + + int AmountProducts = Random.Range(1, Products.Length + 1); + + for (int i = 0; i < AmountProducts; i++) + { + Index = Random.Range(0, IndexProducts.Count); + FinalProducts.Add(Products[IndexProducts[Index]]); + IndexProducts.RemoveAt(Index); + } + /* dla testu + for (int i = 0; i < FinalProducts.Count; i++) + { + Debug.Log("Product " + i + ": " + FinalProducts[i]); + } + */ + } + } \ No newline at end of file