void Start () { inventoryList = new List<Item>(); nullItem = new Item("null",null,-1); holdingItem = nullItem; paddingFromEdge = new Vector2(Screen.width/100,Screen.width/100); startPosition = new Vector2(Screen.width,Screen.height); quest = GameObject.Find ("MasterMind").GetComponent<MessageWindow>(); //slidyUnpacked = new Texture2D(1500,156); //slidyUnpacked.SetPixels(slidyThingie.GetPixels(547,1893,1500,156)); //slidyThingie.pixelInset = new Rect(547,1893,1500,156); //seans holding item icon thingy mo_anim = GetComponent<Mouse_Animation>(); }
void Start() { inventoryList = new List <Item>(); nullItem = new Item("null", null, -1); holdingItem = nullItem; paddingFromEdge = new Vector2(Screen.width / 100, Screen.width / 100); startPosition = new Vector2(Screen.width, Screen.height); quest = GameObject.Find("MasterMind").GetComponent <MessageWindow>(); //slidyUnpacked = new Texture2D(1500,156); //slidyUnpacked.SetPixels(slidyThingie.GetPixels(547,1893,1500,156)); //slidyThingie.pixelInset = new Rect(547,1893,1500,156); //seans holding item icon thingy mo_anim = GetComponent <Mouse_Animation>(); }