Exemple #1
0
    public void SetBinding(InputInterface.KeyBinding binding, bool initialSet)
    {
        if (initialSet)
        {
            Awake();
        }
        this.keyBinding = binding;
        string bindingName = UFUtils.Capitalize(binding.name);

        this.text.text = bindingName + " : " + InputInterface.GetKeyName(binding.code);
        Global.input.SetBinding(binding, initialSet);
    }