// Start is called before the first frame update void Start() { projHandler = FindObjectOfType <ProjectHandler>(); DeskScreenTabState = DeskScreenTabMode.ProjectTab; InventoryState = InventoryMode.Selecting; // Populate the inventory icon array int index = 0; for (int i = 0; i < itemSlots.GetLength(0); i++) { for (int j = 0; j < itemSlots.GetLength(1); j++) { itemSlots[i, j] = itemIcons[index]; index++; } } numOfItems = tedInventory.items.Count; currentItemActionIcon = equipButton; curItemRow = 0; curItemCol = 0; needToUpdateItemToView = true; hostStatusTxt.supportRichText = true; hostStatusHeaderTxt.supportRichText = true; eyeStatusTxt.supportRichText = true; eyeStatusHeaderTxt.supportRichText = true; }
public void PressLeftArrow() { if (DeskScreenTabState == DeskScreenTabMode.ProjectTab) { DeskScreenTabState = DeskScreenTabMode.StatusTab; InitializeStatusTexts(); } else if (DeskScreenTabState == DeskScreenTabMode.InventoryTab) { if (InventoryState == InventoryMode.Selecting) { DeskScreenTabState = DeskScreenTabMode.ProjectTab; } else if (InventoryState == InventoryMode.SelectingCombinedItem) { } } else if (DeskScreenTabState == DeskScreenTabMode.StatusTab) { DeskScreenTabState = DeskScreenTabMode.InventoryTab; } }