Пример #1
0
    protected override void InputUpdate()
    {
        rectTransform.anchoredPosition = originalPosition + amplitude * XInput.GetStickDirection(stick, playerIndex);

        pressedImg.enabled = XInput.ButtonHold(button, playerIndex);
    }