- Home /
CS8025 Parser error
I am getting a parser error at line 32 (very end line) Can you guys help me?
 using UnityEngine;
 using System.Collections;
 
 namespace MyRPG {
  
 public static class UpdateLists
 {
  
     public static void UpdateInventory(Stats Stat)
     {
         for (int i = 0; i < Stat.Inventory.Length; i++)
         {                                   
             if (Stat.Ability[i].name == "Potion")
             {
                 Stat.Inventory[i].cost = 15;
                 Stat.Inventory[i].type = "Medicine";
                 Stat.Inventory[i].effect= "Heal";
                 Stat.Inventory[i].modifier = 30;
                 Stat.Inventory[i].description = "To restore health";               
             }
  
             if (Stat.Ability[i].name == "Bomb")
             {
                 Stat.Inventory[i].cost = 35;
                 Stat.Inventory[i].type = "Bomb";
                 Stat.Inventory[i].effect= "Explode";
                 Stat.Inventory[i].modifier = 50;
                 Stat.Inventory[i].description = "Damage enemies within an area of effect";               
             }
         }
     }
 }
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
I keep getting CS8025 parsing error 1 Answer
Camera's wont change 2 Answers
Script Reference using C # 1 Answer
Error in script I haven't even opened 0 Answers
Crash on .exe but fine on editor... 1 Answer
