コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public void ClientHideActionButton()
 {
     UIActionManager.ToggleLocal(this, false);
 }
コード例 #3
0
 public void ClientShowActionButton()
 {
     UIActionManager.ToggleLocal(this, true);
     UpdateButtonSprite(false);
 }