Working refactor of cleaned up card structure
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user