Hello can please sombody help me i have a proble with my C# script this error shoes up every good damn time:“Assets/Scripts/Item.cs(25,38): error CS0308: The non-generic method `UnityEngine.Resources.Load(string)’ cannot be used with the type arguments”
Here is my code:
using UnityEngine;
using System.Collections;
[System.Serializable]
public class Item {
public string ItemName;
public int ItemID;
public string ItemDescription;
public Texture2D ItemIcon;
public int ItemPower;
public int ItemSpeed;
public itemUse ItemUse;
public enum itemUse
{
Weapon,
Consumable,
}
public Item(string Name, int ID, string Description, int Power, int Speed, itemUse Use)
{
ItemName = Name;
ItemID = ID;
ItemDescription = Description;
ItemIcon = Resources.Load<Texture2D>("Item Icons/" + Name);
ItemPower = Power;
ItemSpeed = Speed;
ItemUse = Use;
}
}