Crazy Food
 
                 
                 
                 
                【Introduction】
To catch food thief, Alice start her survival adventure! She need to collect food to summon “foodmon” to defeat evil monster.
【Game System】
- Skill 
 a. Summon - Summon monsters to a specific area
 b. Pot Cover - Throw and bounce summons and monsters in a specific direction
 c. Teleport - Slowly teleport to summon, may run into obstacles
 d. Explode - Causes damage to surrounding area and cumulative heat, explodes and freezes skill when overheated
- Dialogue 
 Elf will fit players into this world and trigger special quests.
 Upon completion, you can unlock advanced skills and summons!
- Item 
 a. Bag - Collect food from map and monsters
 b. Cuisine - Unlocked by quest, which can make potions and summons
- Day system 
 There is day and night in this world, and monsters will have different attributes according to the time.
 So it’s better to move slowly in time.
【Github】
【Note】
- Dialogie system 
 a. type scripts in CSV, and read by code- CSVloaderCSV.cs - 1 
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17- public void loadFile(string path, string fileName){ 
 arrayData.Clear ();
 StreamReader sr = null;
 try{
 sr=File.OpenText(path+"//"+fileName);
 Debug.Log("file found!");
 }catch{
 Debug.Log ("file lost");
 return;
 }
 string line;
 while ((line = sr.ReadLine ()) != null) {
 arrayData.Add (line.Split(','));
 }
 sr.Close ();
 sr.Dispose ();
 }- b. show on UI - fairyTalkfairy.cs - 1 
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16- void talk(int i) 
 {
 Talk talky = talkUI.GetComponentInChildren<Talk>();
 int storySize = CSV.getInstance().arrayData[i].Length;
 talky.SetStorySize(storySize - 1);
 string[] talkStory = talky.story;
 for (int j = 1; j < storySize; j++)
 {
 talkStory[j - 1] = CSV.getInstance().arrayData[i][j];
 Debug.Log(talkStory[j - 1]);
 }
 talkUI.SetActive(true);
 isTalk = true;
 nowString = "";
 }
- Bag system 
 check if item exists in bag, if not, add to list- saveitemsaveitem.cs - 1 
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11- public void save(SaveItem ItemInfo) { 
 bool isInList=false;
 foreach (SaveItem _savedItem in _listData) {
 if (ItemInfo.species == _savedItem.species) {//in list
 _savedItem.num++;
 isInList = true;
 break;
 }
 }
 if(!isInList) _listData.Add(ItemInfo);
 }
