//private IslandController lastIslandToggle = null; private void HandleKeyDown() { var isShiftDown = Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift); var isControlDown = isShiftDown || Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl); if (Input.GetKeyUp(KeyCode.Q)) { LogoCensor = !LogoCensor; } if (Input.GetKeyUp(KeyCode.I)) { playerList.ToggleExpRate(); } if (isControlDown && Input.GetKeyUp(KeyCode.F)) { playerSearchHandler.Show(); } if (isControlDown && Input.GetKeyUp(KeyCode.S)) { SavePlayersAsync(); } if (Input.GetKeyUp(KeyCode.Space)) { var player = Players.FindPlayers("zerratar").FirstOrDefault(); if (player) { var def = JsonConvert.DeserializeObject <RavenNestPlayer>(JsonConvert.SerializeObject(player.Definition)); def.UserId = UnityEngine.Random.Range(12345, 99999).ToString(); def.Name += def.UserId; def.UserName += def.UserId; var p = SpawnPlayer(def); if (raidManager.Started) { raidManager.Join(p); } } } if (isControlDown && Input.GetKeyUp(KeyCode.O)) { Dungeons.ActivateDungeon(); } if (isControlDown && Input.GetKeyUp(KeyCode.P)) { Dungeons.ForceStartDungeon(); } if (isControlDown && Input.GetKeyUp(KeyCode.R)) { raidManager.StartRaid(); } if (Permissions.IsAdministrator || Application.isEditor) { if (isControlDown && Input.GetKeyDown(KeyCode.Delete)) { subEventManager.Reset(); } if (isControlDown && Input.GetKeyUp(KeyCode.A)) { subEventManager.Activate(); } if (isControlDown && Input.GetKeyUp(KeyCode.X)) { Twitch.OnSubscribe(new TwitchSubscription(null, null, null, null, 1, true)); } if (isControlDown && Input.GetKeyUp(KeyCode.C)) { Twitch.OnSubscribe(new TwitchSubscription(null, null, null, null, -1, true)); } } }