private IEnumerator CheckMatch() { if (_firstRevealed.id == _secondReveal.id) { _score++; scoreLabel1.text = "Score:" + _score; } else { yield return(new WaitForSeconds(0.5f)); _firstRevealed.Unrevealed(); _secondReveal.Unrevealed(); } _secondReveal = null; _firstRevealed = null; }
private IEnumerator CheckMatch() { if (_firstRevealed.id == _secondReveal.id) { _score++; scoreLabel1.text = "Score:" + _score; //De aqui empiez mi mod if (_secondReveal.id == 0) { Inform0.show(); yield return(new WaitForSeconds(3)); Inform0.cerrar(); } if (_secondReveal.id == 1) { Inform1.show(); yield return(new WaitForSeconds(3)); Inform1.cerrar(); } if (_secondReveal.id == 2) { Inform2.show(); yield return(new WaitForSeconds(3)); Inform2.cerrar(); } if (_secondReveal.id == 3) { Inform3.show(); yield return(new WaitForSeconds(3)); Inform3.cerrar(); } if (_secondReveal.id == 4) { Inform4.show(); yield return(new WaitForSeconds(3)); Inform4.cerrar(); } if (_secondReveal.id == 5) { Inform5.show(); yield return(new WaitForSeconds(3)); Inform5.cerrar(); } //aqui termina mi mod } else { yield return(new WaitForSeconds(0.5f)); _firstRevealed.Unrevealed(); _secondReveal.Unrevealed(); } _secondReveal = null; _firstRevealed = null; }