Example #1
0
 void SetInventory()
 {
     //DEMO CODE
     itemSpotOnPlayer.gameObject.GetComponent <Item>().data         = testActionBarList[0].data;
     itemSpotOnPlayer.gameObject.GetComponent <Item>().whatIsTarget = testActionBarList[0].whatIsTarget;
     activeItem = itemSpotOnPlayer.gameObject.GetComponent <Item>();
     for (int i = 0; i < testActionBarList.Length; ++i)
     {
         actionBars.SetItem(i, testActionBarList[i]);
     }
 }