Exemplo n.º 1
0
    public void Read()
    {
        if (Input.GetKeyUp(KeyCode.Tab))
        {
            int nextLayoutIdx = ((int)_currentLayout + 1) % 2;
            ChangeLayout((LayoutType)nextLayoutIdx);
        }

        idle.Read();
        rangeTarget.Read();

        actionConfirm.Read();
        actionCancel.Read();

        MoveDir = MoveDirection.None;



        foreach (var entry in _directionEntries)
        {
            if (entry.Value.Read())
            {
                MoveDir = entry.Key;
                break;
            }
        }

        for (int i = 0; i < _inputData.NumberKeys; ++i)
        {
            NumbersPressed[i] = Input.GetKeyUp(i + StartKeyCode);
        }

        InternalRead();
    }
Exemplo n.º 2
0
 protected override void InternalRead()
 {
     dropAbsorption.Read();
 }