internal void Update() { if (CustomKeybindings.GetKeyDown(TOGGLE_KEY, out int playerID)) { var player = SplitScreenManager.Instance.LocalPlayers[playerID].AssignedCharacter; CustomToggleTarget(player); } }
internal void Awake() { Instance = this; var harmony = new Harmony("com.sinai.bettertargeting"); harmony.PatchAll(); CustomKeybindings.AddAction(TOGGLE_KEY, KeybindingsCategory.CustomKeybindings, ControlType.Both); }
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); }