protected virtual void ButtonTwo_MaxLimitReached(object sender, Controllables.ControllableEventArgs e) { if (buttonOnePressed) { SetStayPressed(buttonOne, false); } buttonTwoPressed = true; SetPositionTarget(buttonTwo, 0f); ChangeColor(buttonTwo.gameObject, onColor); }
protected virtual void ButtonTwo_MaxLimitExited(object sender, Controllables.ControllableEventArgs e) { SetStayPressed(buttonTwo, true); buttonTwoPressed = false; ChangeColor(buttonTwo.gameObject, offColor); }