private void ClientTeleportDestinationSelected(Vector3 position) { TeleportWindow.gameObject.SetActive(false); // We run our own instead of base.CallActionClient(); ClientRequestTeleportMessage.Send(SpellData.Index, position.CutToInt()); }
public static ClientRequestTeleportMessage Send(int spellIndex, Vector3Int destination) { ClientRequestTeleportMessage msg = new ClientRequestTeleportMessage { SpellIndex = spellIndex, Destination = destination, }; msg.Send(); return(msg); }