Ejemplo n.º 1
0
        private void ClientTeleportDestinationSelected(Vector3 position)
        {
            TeleportWindow.gameObject.SetActive(false);

            // We run our own instead of base.CallActionClient();
            ClientRequestTeleportMessage.Send(SpellData.Index, position.CutToInt());
        }
Ejemplo n.º 2
0
        public static ClientRequestTeleportMessage Send(int spellIndex, Vector3Int destination)
        {
            ClientRequestTeleportMessage msg = new ClientRequestTeleportMessage
            {
                SpellIndex  = spellIndex,
                Destination = destination,
            };

            msg.Send();
            return(msg);
        }