Пример #1
0
        /// <summary>
        /// Called when the item steal button is pushed. Set item to thief player and activate put point popup.
        /// </summary>
        public void OnStealButton()
        {
            ThiefController.LocalThief.photonView.
            RPC("StealItemInPoint", PhotonTargets.AllViaServer, CurGenPoint.Index);
            //MultiplayRoomManager.Instance.photonView.RPC("SetStealAlert", PhotonTargets.All, CurGenPoint.Index);
            PutItemPoint.SetPointPopup(true);

            gameObject.SetActive(false);
        }
Пример #2
0
        /// <summary>
        /// Put current stolen item to this point.
        /// </summary>
        public void OnPutItemButton()
        {
            ThiefController localThief = ThiefController.LocalThief;

            MultiplayRoomManager.Instance.photonView
            .RPC("StealSuccess", PhotonTargets.AllViaServer, PhotonNetwork.player.ID, localThief.ItemInHand.GenPoint.Index);
            localThief.photonView.RPC("PutItemInPoint", PhotonTargets.All);
            PutItemPoint.SetPointPopup(false);

            gameObject.SetActive(false);
        }