Ejemplo n.º 1
0
    private IEnumerator CardsCheck()
    {
        if (_first.id == _second.id)
        {
            _score++;
            _moves++;
        }
        else
        {
            yield return(new WaitForSeconds(1.0f));

            _first.Cover();
            _second.Cover();
            _moves++;
        }
        _first  = null;
        _second = null;
    }