123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class LevelsData
- {
- static List<LevelReward> levelsRewards = new List<LevelReward>();
- public static List<LevelReward> LevelsRewards
- {
- get { return levelsRewards; }
- }
- public static int MaxLevel
- {
- get { return 40; }
- }
- public static int TutorialLevel
- {
- get { return 4; }
- }
- public static void SetLevelsData()
- {
- LevelsRewards.Clear();
- LevelReward tempLevelReward = new LevelReward();
- //1
- tempLevelReward.Motivation = 20;
- tempLevelReward.Coins = 50;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //2
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 20;
- tempLevelReward.Coins = 75;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //3
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 21;
- tempLevelReward.Coins = 125;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //4
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 21;
- tempLevelReward.Coins = 150;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //5
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 22;
- tempLevelReward.Coins = 300;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //6
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 22;
- tempLevelReward.Coins = 500;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //7
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 22;
- tempLevelReward.Coins = 1000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //8
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 22;
- tempLevelReward.Coins = 1200;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //9
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 23;
- tempLevelReward.Coins = 1400;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //10
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 23;
- tempLevelReward.Coins = 1600;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //11
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 23;
- tempLevelReward.Coins = 1800;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //12
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 23;
- tempLevelReward.Coins = 2000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //13
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 23;
- tempLevelReward.Coins = 2200;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //14
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 24;
- tempLevelReward.Coins = 2400;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //15
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 24;
- tempLevelReward.Coins = 2600;
- tempLevelReward.Glam = 2;
- LevelsRewards.Add(tempLevelReward);
- //16
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 24;
- tempLevelReward.Coins = 2800;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //17
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 24;
- tempLevelReward.Coins = 3000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //18
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 24;
- tempLevelReward.Coins = 3200;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //19
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 25;
- tempLevelReward.Coins = 3400;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //20
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 25;
- tempLevelReward.Coins = 3600;
- tempLevelReward.Glam = 2;
- LevelsRewards.Add(tempLevelReward);
- //21
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 25;
- tempLevelReward.Coins = 3800;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //22
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 25;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //23
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 25;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //24
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 25;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //25
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 25;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 2;
- LevelsRewards.Add(tempLevelReward);
- //26
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 25;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //27
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 26;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //28
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 26;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //29
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 26;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //30
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 26;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 2;
- LevelsRewards.Add(tempLevelReward);
- //31
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 26;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //32
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 26;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //33
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 26;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //34
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 27;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //35
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 27;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 2;
- LevelsRewards.Add(tempLevelReward);
- //36
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 27;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //37
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 27;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //38
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 28;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //39
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 28;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 1;
- LevelsRewards.Add(tempLevelReward);
- //40
- tempLevelReward = new LevelReward();
- tempLevelReward.Motivation = 28;
- tempLevelReward.Coins = 4000;
- tempLevelReward.Glam = 2;
- LevelsRewards.Add(tempLevelReward);
- }
- public class LevelReward
- {
- int motivation;
- int coins;
- int glam;
- public int Motivation
- {
- get { return motivation; }
- set { motivation = value; }
- }
- public int Coins
- {
- get { return coins; }
- set { coins = value; }
- }
- public int Glam
- {
- get { return glam; }
- set { glam = value; }
- }
- }
- }
|