示例#1
0
 void SetUIInventory(int index, Equipable equip)
 {
     uiInv[index] = Instantiate(equip.getEquipableGameObject(), invParent) as GameObject;
     ChangeLayer(uiInv [index], 5);
     uiInv [index].transform.localPosition = new Vector3(-255f + 55f * index, 20f, -.1f);
     uiInv [index].transform.localRotation = Quaternion.Euler(equip.getUIRotation());
     uiInv [index].transform.localScale    = equip.getUIScale();
 }