Fix up card flows, align with the old 1:1
This commit is contained in:
committed by
Michal Pikulski
parent
a6471ede45
commit
39d5890db4
@@ -45,6 +45,9 @@ namespace UI.CardSystem.StateMachine.States
|
||||
|
||||
public void OnPointerClick(PointerEventData eventData)
|
||||
{
|
||||
// Fire dismissed event
|
||||
_context.FireCardDismissed();
|
||||
|
||||
// Tap to dismiss - shrink back and transition to revealed state
|
||||
if (_context.Animator != null)
|
||||
{
|
||||
@@ -53,6 +56,11 @@ namespace UI.CardSystem.StateMachine.States
|
||||
_context.StateMachine.ChangeState("RevealedState");
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
// Fallback if no animator
|
||||
_context.StateMachine.ChangeState("RevealedState");
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
|
||||
Reference in New Issue
Block a user