public void OnInventoryMoveClient(ClientInventoryMove info) { if (PlayerManager.LocalPlayerScript == null) { return; } var pna = PlayerManager.LocalPlayerScript.playerNetworkActions; bool showAlert = false; foreach (var itemSlot in pna.itemStorage.GetHandSlots()) { if (itemSlot.ItemObject == gameObject) { showAlert = true; } } foreach (var _IActionGUI in ControllingActions) { UIActionManager.ToggleLocal(_IActionGUI, showAlert); } }
public void ClientHideActionButton() { UIActionManager.ToggleLocal(this, false); }
public void ClientShowActionButton() { UIActionManager.ToggleLocal(this, true); UpdateButtonSprite(false); }