//Sorry for posting so many errors, but I need these scripts for my game.
using UnityEngine;
using System.Collections;
namespace Stats {
public static class UpdateLists
{
public static void UpdateInventory(Stats Stat)
{
for (int i = 0; i < Stat.Inventory.Length; i++)
{
if (Stat.Ability*.name == "Potion")*
{
Stat.Inventory*.cost = 15;*
Stat.Inventory*.type = “Medicine”;*
Stat.Inventory*.effect= “Heal”;*
Stat.Inventory*.modifier = 30;*
Stat.Inventory*.description = “To restore health”;*
}
if (Stat.Ability*.name == “Bomb”)*
{
Stat.Inventory*.cost = 35;*
Stat.Inventory*.type = “Bomb”;*
Stat.Inventory*.effect= “Explode”;*
Stat.Inventory*.modifier = 50;*
Stat.Inventory*.description = “Damage enemies within an area of effect”;*
}
}
}
}
}
// I am getting a CS0118 error at line 9 public static void UpdateInventory(Stats Stat)
'Stats is a namespace, but a ‘type’ was expected is what the error says.