Ejemplo n.º 1
0
 public void OnTouched(InteractionEvent data)
 {
     input         = data.player.OverrideInput();
     input.OnExit += () => {
         typingEnabled = false;
     };
     typingEnabled = true;
 }
Ejemplo n.º 2
0
    public InputControlContext OverrideInput()
    {
        var other = new InputControlContext();

        other.IsActive = true;
        if (inputStack.Count > 0)
        {
            inputStack.Peek().IsActive = false;
        }
        inputStack.Push(other);
        return(other);
    }