private void ToggleCharacterSheet() { var canvas = GameObject.FindGameObjectWithTag("Canvas"); canvas.GetComponent <Inventory>().Refresh(); characterSheet.GetComponent <DuloGames.UI.UIWindow>().Toggle(); DropsArea.ClearDrops(); }
public void OnClick() { if (PlayerCharacter.localPlayer.inventory.items.Contains(item)) { GameObject.FindGameObjectWithTag("Canvas").GetComponent <Inventory>().Refresh(); DropsArea.OpenInventory(); } DropsArea.ClearDrops(); }
private void ToggleInventory() { var canvas = GameObject.FindGameObjectWithTag("Canvas"); canvas.GetComponent <Inventory>().Refresh(); //inventory.SetActive(!inventory.activeSelf); inventory.GetComponent <DuloGames.UI.UIWindow>().Toggle(); DropsArea.ClearDrops(); }
private void ToggleAbilityMenu() { abilityScreen.GetComponent <DuloGames.UI.UIWindow>().Toggle(); DropsArea.ClearDrops(); }
public void ToggleInventory() { canvas.GetComponent <Inventory>().Refresh(); inventory.GetComponent <DuloGames.UI.UIWindow>().Toggle(); DropsArea.ClearDrops(); }