so im getting the error
IndexOutOfRangeException: Array index is out of range.
Inventory.Start () (at Assets/Scripts/Inventory.js:14)
here is the code, i diont understand what is the problem
import System.Collections.Generic;
import System.Collections.Generic;
//Holding all of our items.
var items : Item[];
//Inventory
var MainInventory : List.<Item> = new List.<Item>();
function Start(){
MainInventory.Add(items[0]);
}
function OnGUI(){
}