Example #1
0
 internal void Update()
 {
     if (CustomKeybindings.GetKeyDown(TOGGLE_KEY, out int playerID))
     {
         var player = SplitScreenManager.Instance.LocalPlayers[playerID].AssignedCharacter;
         CustomToggleTarget(player);
     }
 }
Example #2
0
        internal void Awake()
        {
            Instance = this;

            var harmony = new Harmony("com.sinai.bettertargeting");

            harmony.PatchAll();

            CustomKeybindings.AddAction(TOGGLE_KEY, KeybindingsCategory.CustomKeybindings, ControlType.Both);
        }
Example #3
0
        internal void Awake()
        {
            Instance = this;

            var harmony = new Harmony("com.sinai.bettertargeting");

            harmony.PatchAll();

            CustomKeybindings.AddAction(ToggleKey, CustomKeybindings.KeybindingsCategory.Actions, CustomKeybindings.ControlType.Both, 5, CustomKeybindings.InputActionType.Button);
        }