LevelsData.cs 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class LevelsData
  6. {
  7. static List<LevelReward> levelsRewards = new List<LevelReward>();
  8. public static List<LevelReward> LevelsRewards
  9. {
  10. get { return levelsRewards; }
  11. }
  12. public static int MaxLevel
  13. {
  14. get { return 40; }
  15. }
  16. public static int TutorialLevel
  17. {
  18. get { return 4; }
  19. }
  20. public static void SetLevelsData()
  21. {
  22. LevelsRewards.Clear();
  23. LevelReward tempLevelReward = new LevelReward();
  24. //1
  25. tempLevelReward.Motivation = 20;
  26. tempLevelReward.Coins = 50;
  27. tempLevelReward.Glam = 1;
  28. LevelsRewards.Add(tempLevelReward);
  29. //2
  30. tempLevelReward = new LevelReward();
  31. tempLevelReward.Motivation = 20;
  32. tempLevelReward.Coins = 75;
  33. tempLevelReward.Glam = 1;
  34. LevelsRewards.Add(tempLevelReward);
  35. //3
  36. tempLevelReward = new LevelReward();
  37. tempLevelReward.Motivation = 21;
  38. tempLevelReward.Coins = 125;
  39. tempLevelReward.Glam = 1;
  40. LevelsRewards.Add(tempLevelReward);
  41. //4
  42. tempLevelReward = new LevelReward();
  43. tempLevelReward.Motivation = 21;
  44. tempLevelReward.Coins = 150;
  45. tempLevelReward.Glam = 1;
  46. LevelsRewards.Add(tempLevelReward);
  47. //5
  48. tempLevelReward = new LevelReward();
  49. tempLevelReward.Motivation = 22;
  50. tempLevelReward.Coins = 300;
  51. tempLevelReward.Glam = 1;
  52. LevelsRewards.Add(tempLevelReward);
  53. //6
  54. tempLevelReward = new LevelReward();
  55. tempLevelReward.Motivation = 22;
  56. tempLevelReward.Coins = 500;
  57. tempLevelReward.Glam = 1;
  58. LevelsRewards.Add(tempLevelReward);
  59. //7
  60. tempLevelReward = new LevelReward();
  61. tempLevelReward.Motivation = 22;
  62. tempLevelReward.Coins = 1000;
  63. tempLevelReward.Glam = 1;
  64. LevelsRewards.Add(tempLevelReward);
  65. //8
  66. tempLevelReward = new LevelReward();
  67. tempLevelReward.Motivation = 22;
  68. tempLevelReward.Coins = 1200;
  69. tempLevelReward.Glam = 1;
  70. LevelsRewards.Add(tempLevelReward);
  71. //9
  72. tempLevelReward = new LevelReward();
  73. tempLevelReward.Motivation = 23;
  74. tempLevelReward.Coins = 1400;
  75. tempLevelReward.Glam = 1;
  76. LevelsRewards.Add(tempLevelReward);
  77. //10
  78. tempLevelReward = new LevelReward();
  79. tempLevelReward.Motivation = 23;
  80. tempLevelReward.Coins = 1600;
  81. tempLevelReward.Glam = 1;
  82. LevelsRewards.Add(tempLevelReward);
  83. //11
  84. tempLevelReward = new LevelReward();
  85. tempLevelReward.Motivation = 23;
  86. tempLevelReward.Coins = 1800;
  87. tempLevelReward.Glam = 1;
  88. LevelsRewards.Add(tempLevelReward);
  89. //12
  90. tempLevelReward = new LevelReward();
  91. tempLevelReward.Motivation = 23;
  92. tempLevelReward.Coins = 2000;
  93. tempLevelReward.Glam = 1;
  94. LevelsRewards.Add(tempLevelReward);
  95. //13
  96. tempLevelReward = new LevelReward();
  97. tempLevelReward.Motivation = 23;
  98. tempLevelReward.Coins = 2200;
  99. tempLevelReward.Glam = 1;
  100. LevelsRewards.Add(tempLevelReward);
  101. //14
  102. tempLevelReward = new LevelReward();
  103. tempLevelReward.Motivation = 24;
  104. tempLevelReward.Coins = 2400;
  105. tempLevelReward.Glam = 1;
  106. LevelsRewards.Add(tempLevelReward);
  107. //15
  108. tempLevelReward = new LevelReward();
  109. tempLevelReward.Motivation = 24;
  110. tempLevelReward.Coins = 2600;
  111. tempLevelReward.Glam = 2;
  112. LevelsRewards.Add(tempLevelReward);
  113. //16
  114. tempLevelReward = new LevelReward();
  115. tempLevelReward.Motivation = 24;
  116. tempLevelReward.Coins = 2800;
  117. tempLevelReward.Glam = 1;
  118. LevelsRewards.Add(tempLevelReward);
  119. //17
  120. tempLevelReward = new LevelReward();
  121. tempLevelReward.Motivation = 24;
  122. tempLevelReward.Coins = 3000;
  123. tempLevelReward.Glam = 1;
  124. LevelsRewards.Add(tempLevelReward);
  125. //18
  126. tempLevelReward = new LevelReward();
  127. tempLevelReward.Motivation = 24;
  128. tempLevelReward.Coins = 3200;
  129. tempLevelReward.Glam = 1;
  130. LevelsRewards.Add(tempLevelReward);
  131. //19
  132. tempLevelReward = new LevelReward();
  133. tempLevelReward.Motivation = 25;
  134. tempLevelReward.Coins = 3400;
  135. tempLevelReward.Glam = 1;
  136. LevelsRewards.Add(tempLevelReward);
  137. //20
  138. tempLevelReward = new LevelReward();
  139. tempLevelReward.Motivation = 25;
  140. tempLevelReward.Coins = 3600;
  141. tempLevelReward.Glam = 2;
  142. LevelsRewards.Add(tempLevelReward);
  143. //21
  144. tempLevelReward = new LevelReward();
  145. tempLevelReward.Motivation = 25;
  146. tempLevelReward.Coins = 3800;
  147. tempLevelReward.Glam = 1;
  148. LevelsRewards.Add(tempLevelReward);
  149. //22
  150. tempLevelReward = new LevelReward();
  151. tempLevelReward.Motivation = 25;
  152. tempLevelReward.Coins = 4000;
  153. tempLevelReward.Glam = 1;
  154. LevelsRewards.Add(tempLevelReward);
  155. //23
  156. tempLevelReward = new LevelReward();
  157. tempLevelReward.Motivation = 25;
  158. tempLevelReward.Coins = 4000;
  159. tempLevelReward.Glam = 1;
  160. LevelsRewards.Add(tempLevelReward);
  161. //24
  162. tempLevelReward = new LevelReward();
  163. tempLevelReward.Motivation = 25;
  164. tempLevelReward.Coins = 4000;
  165. tempLevelReward.Glam = 1;
  166. LevelsRewards.Add(tempLevelReward);
  167. //25
  168. tempLevelReward = new LevelReward();
  169. tempLevelReward.Motivation = 25;
  170. tempLevelReward.Coins = 4000;
  171. tempLevelReward.Glam = 2;
  172. LevelsRewards.Add(tempLevelReward);
  173. //26
  174. tempLevelReward = new LevelReward();
  175. tempLevelReward.Motivation = 25;
  176. tempLevelReward.Coins = 4000;
  177. tempLevelReward.Glam = 1;
  178. LevelsRewards.Add(tempLevelReward);
  179. //27
  180. tempLevelReward = new LevelReward();
  181. tempLevelReward.Motivation = 26;
  182. tempLevelReward.Coins = 4000;
  183. tempLevelReward.Glam = 1;
  184. LevelsRewards.Add(tempLevelReward);
  185. //28
  186. tempLevelReward = new LevelReward();
  187. tempLevelReward.Motivation = 26;
  188. tempLevelReward.Coins = 4000;
  189. tempLevelReward.Glam = 1;
  190. LevelsRewards.Add(tempLevelReward);
  191. //29
  192. tempLevelReward = new LevelReward();
  193. tempLevelReward.Motivation = 26;
  194. tempLevelReward.Coins = 4000;
  195. tempLevelReward.Glam = 1;
  196. LevelsRewards.Add(tempLevelReward);
  197. //30
  198. tempLevelReward = new LevelReward();
  199. tempLevelReward.Motivation = 26;
  200. tempLevelReward.Coins = 4000;
  201. tempLevelReward.Glam = 2;
  202. LevelsRewards.Add(tempLevelReward);
  203. //31
  204. tempLevelReward = new LevelReward();
  205. tempLevelReward.Motivation = 26;
  206. tempLevelReward.Coins = 4000;
  207. tempLevelReward.Glam = 1;
  208. LevelsRewards.Add(tempLevelReward);
  209. //32
  210. tempLevelReward = new LevelReward();
  211. tempLevelReward.Motivation = 26;
  212. tempLevelReward.Coins = 4000;
  213. tempLevelReward.Glam = 1;
  214. LevelsRewards.Add(tempLevelReward);
  215. //33
  216. tempLevelReward = new LevelReward();
  217. tempLevelReward.Motivation = 26;
  218. tempLevelReward.Coins = 4000;
  219. tempLevelReward.Glam = 1;
  220. LevelsRewards.Add(tempLevelReward);
  221. //34
  222. tempLevelReward = new LevelReward();
  223. tempLevelReward.Motivation = 27;
  224. tempLevelReward.Coins = 4000;
  225. tempLevelReward.Glam = 1;
  226. LevelsRewards.Add(tempLevelReward);
  227. //35
  228. tempLevelReward = new LevelReward();
  229. tempLevelReward.Motivation = 27;
  230. tempLevelReward.Coins = 4000;
  231. tempLevelReward.Glam = 2;
  232. LevelsRewards.Add(tempLevelReward);
  233. //36
  234. tempLevelReward = new LevelReward();
  235. tempLevelReward.Motivation = 27;
  236. tempLevelReward.Coins = 4000;
  237. tempLevelReward.Glam = 1;
  238. LevelsRewards.Add(tempLevelReward);
  239. //37
  240. tempLevelReward = new LevelReward();
  241. tempLevelReward.Motivation = 27;
  242. tempLevelReward.Coins = 4000;
  243. tempLevelReward.Glam = 1;
  244. LevelsRewards.Add(tempLevelReward);
  245. //38
  246. tempLevelReward = new LevelReward();
  247. tempLevelReward.Motivation = 28;
  248. tempLevelReward.Coins = 4000;
  249. tempLevelReward.Glam = 1;
  250. LevelsRewards.Add(tempLevelReward);
  251. //39
  252. tempLevelReward = new LevelReward();
  253. tempLevelReward.Motivation = 28;
  254. tempLevelReward.Coins = 4000;
  255. tempLevelReward.Glam = 1;
  256. LevelsRewards.Add(tempLevelReward);
  257. //40
  258. tempLevelReward = new LevelReward();
  259. tempLevelReward.Motivation = 28;
  260. tempLevelReward.Coins = 4000;
  261. tempLevelReward.Glam = 2;
  262. LevelsRewards.Add(tempLevelReward);
  263. }
  264. public class LevelReward
  265. {
  266. int motivation;
  267. int coins;
  268. int glam;
  269. public int Motivation
  270. {
  271. get { return motivation; }
  272. set { motivation = value; }
  273. }
  274. public int Coins
  275. {
  276. get { return coins; }
  277. set { coins = value; }
  278. }
  279. public int Glam
  280. {
  281. get { return glam; }
  282. set { glam = value; }
  283. }
  284. }
  285. }