Example #1
0
    public void Open(InputAction actionToRebind, IInputMap mapToRebind, IEnumerable <InputAction> allActions, IInputDevice device)
    {
        if (ChartEditor.Instance)
        {
            ChartEditor.Instance.uiServices.SetPopupBlockingEnabled(true);
        }

        this.device = device;
        rebinder    = new InputRebinder(actionToRebind, mapToRebind, allActions, device);
        gameObject.SetActive(true);
    }
Example #2
0
    void Close(bool rebindSuccess)
    {
        this.device = null;
        if (!rebindSuccess && rebinder != null)
        {
            rebinder.RevertMapBeingRebound();
        }

        rebinder = null;
        gameObject.SetActive(false);
        rebindCompleteEvent.Fire();

        if (ChartEditor.Instance)
        {
            ChartEditor.Instance.uiServices.SetPopupBlockingEnabled(false);
        }

        Localiser.LocaliseScene();
    }