Esempio n. 1
0
 // * need to run this in fixed update so this logic fires before mouseclick logic
 // * the effect of this is that the sprite will change and then this logic will get called on the following frame
 // * so the player can see both cards flipped over
 private void FixedUpdate()
 {
     if (parentScript.gameState.Count > 1)
     {
         parentScript.checkGameState();
     }
 }