void GoToMagic() { if (view.IsVisible()) { toggleExploreTrigger.RaiseOnTriggered(); } WebInterface.GoToMagic(); }
private void OnTeleportPressed() { switch (teleportData.destination) { case TELEPORT_COMMAND_CROWD: WebInterface.GoToCrowd(); break; case TELEPORT_COMMAND_MAGIC: WebInterface.GoToMagic(); break; default: int x, y; string[] coordSplit = teleportData.destination.Split(','); if (coordSplit.Length == 2 && int.TryParse(coordSplit[0], out x) && int.TryParse(coordSplit[1], out y)) { WebInterface.GoTo(x, y); } break; } }