|
I got this strange error and cant figure how to fix it? using UnityEngine; using System.Collections; using System.Collections.Generic; public class Loot : MonoBehaviour { public float lootwindowheight = 90; public float Buttonheight = 40; public float Buttonwidth = 40; private List _lootItems; private float OFF_SET = 10; private const int LOOT_WINDOW_ID = 0; private Rect _lootWindow = new Rect(0,0,0,0); }
(comments are locked)
|
|
Specifically, what is the error you're getting. Just copy and paste it. I'm inclined to believe that the error stems from the fact that you created an untyped private list and the tried to initialize it with type "item". Always post your error if you're getting one, and always make sure your code is properly formatted before you post your question :) Qato likes to format half of a code block and leave the rest all messed up.
(comments are locked)
|
|
then there is no class called Item thats present in this or an earlier compile step. See the advanced manual on compilation order to know whats being compiled first to ensure that this class here is not within that one. Should you mix C# and UnityScript it will also tell you what to keep in mind to have one of them use the other
(comments are locked)
|

what is the error and on which line is it reported?
_lootItems = new List (Item)(); //Error is here
and it says Item could not be found?