Exemple #1
0
        protected override void KeyDown(VirtualKeys key)
        {
            if (key == VirtualKeys.Escape)
            {
                _InGameMenu.Open();
                return;
            }

            if (ScriptClient.Client.IsCharacter)
            {
                _PlayerControls.TryCall(key, true);
            }
            else if (ScriptClient.Client.IsSpecating)
            {
                _SpectatorControls.TryCall(key, true);
            }
        }