Beispiel #1
0
 public static void CopyInputAction(InputAction a, InputAction source)
 {
     a.Name        = source.Name;
     a.displayName = source.displayName;
     a.bindings.Clear();
     foreach (var binding in source.bindings)
     {
         InputBinding duplicate = new InputBinding();
         duplicate.Copy(binding);
         a.bindings.Add(duplicate);
     }
 }
    public override void SetDefaultBindings(RuntimeInputConfiguration runtimeConfig)
    {
        InputBinding horizontalBinding      = runtimeConfig.GetBinding(InputBindingName.GAMEPLAY_HORIZONTAL);
        InputBinding verticalBinding        = runtimeConfig.GetBinding(InputBindingName.GAMEPLAY_VERTICAL);
        InputBinding attackBinding          = runtimeConfig.GetBinding(InputBindingName.GAMEPLAY_ATTACK);
        InputBinding camHorizontal          = runtimeConfig.GetBinding(InputBindingName.GAMEPLAY_CAMHORIZONTAL);
        InputBinding camVertical            = runtimeConfig.GetBinding(InputBindingName.GAMEPLAY_CAMVERTICAL);
        InputBinding interactBinding        = runtimeConfig.GetBinding(InputBindingName.GAMEPLAY_INTERACT);
        InputBinding toggleTargetingBinding = runtimeConfig.GetBinding(InputBindingName.GAMEPLAY_TOGGLE_TARGETING);
        InputBinding nextTargetBinding      = runtimeConfig.GetBinding(InputBindingName.GAMEPLAY_NEXT_TARGET);
        InputBinding primarySkillBinding    = runtimeConfig.GetBinding(InputBindingName.GAMEPLAY_PRIMARY_SKILL);
        InputBinding secondarySkillBinding  = runtimeConfig.GetBinding(InputBindingName.GAMEPLAY_SECONDARY_SKILL);

        horizontalBinding.Copy(this.horizontalBinding);
        verticalBinding.Copy(this.verticalBinding);
        attackBinding.Copy(this.attackBinding);
        camHorizontal.Copy(this.camHorizontalBinding);
        camVertical.Copy(this.camVerticalBinding);
        interactBinding.Copy(this.interactBinding);
        toggleTargetingBinding.Copy(this.toggleTargetingBinding);
        nextTargetBinding.Copy(this.nextTargetBinding);
        primarySkillBinding.Copy(this.primarySkillBinding);
        secondarySkillBinding.Copy(this.secondarySkillBinding);
    }
Beispiel #3
0
    public override void SetDefaultBindings(RuntimeInputConfiguration runtimeConfig)
    {
        InputBinding equipBinding = runtimeConfig.GetBinding(InputBindingName.PLAYER_INV_USEOREQUIP);

        equipBinding.Copy(this.equipBinding);
    }
Beispiel #4
0
    public override void SetDefaultBindings(RuntimeInputConfiguration runtimeConfig)
    {
        InputBinding pauseBinding = runtimeConfig.GetBinding(InputBindingName.TOGGLE_PAUSE);

        pauseBinding.Copy(this.pauseBinding);
    }