Working refactor of cleaned up card structure

This commit is contained in:
Michal Pikulski
2025-11-18 01:03:45 +01:00
parent 689e177c99
commit 64c304bb6d
18 changed files with 163 additions and 73 deletions

View File

@@ -85,7 +85,7 @@ namespace UI.CardSystem.StateMachine.States
context.RootTransform.localRotation = _originalLocalRotation;
// Transition back to placed state
context.StateMachine.ChangeState("PlacedInSlotState");
context.StateMachine.ChangeState(CardStateNames.PlacedInSlot);
});
}
else
@@ -95,7 +95,7 @@ namespace UI.CardSystem.StateMachine.States
context.RootTransform.SetParent(_originalParent, true);
context.RootTransform.localPosition = _originalLocalPosition;
context.RootTransform.localRotation = _originalLocalRotation;
context.StateMachine.ChangeState("PlacedInSlotState");
context.StateMachine.ChangeState(CardStateNames.PlacedInSlot);
}
}