counter fix (again)
This commit is contained in:
parent
560cc4a762
commit
3a021f72a2
@ -135,6 +135,7 @@ int main()
|
||||
std::cout<<("State missing");
|
||||
if (!c.IsFlipped() && !c.IsMatched()) //<--------------- Zustandwechsel anpassen
|
||||
{
|
||||
|
||||
Vector2 screenPos = GetWorldToScreen(
|
||||
{c.GetPosition().x, c.GetPosition().y, c.GetPosition().z}, camera);
|
||||
|
||||
@ -143,16 +144,16 @@ int main()
|
||||
{
|
||||
c.FlipForward(); //<-----Animation Start
|
||||
|
||||
|
||||
counter++;
|
||||
if (state == GameState::Idle) //neu Ü4
|
||||
{
|
||||
state = GameState::OneFlipped;
|
||||
counter++;
|
||||
|
||||
}
|
||||
else if (state == GameState::OneFlipped && first && &c != first)
|
||||
{
|
||||
state = GameState::LockInput;
|
||||
counter++;
|
||||
|
||||
}
|
||||
|
||||
break; // 🔒 nur EIN Würfel pro Klick
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user