Ejemplo n.º 1
0
    /// Finds potential matches

    private IEnumerator CheckPotentialMatches()
    {
        yield return new WaitForSeconds(ConstantsVariable.WaitBeforePotentialMatchesCheck);
        potentialMatches = GameUtilities.GetPotentialMatches(shapes);
        if (potentialMatches != null)
        {
            while (true)
            {

                AnimatePotentialMatchesCoroutine = GameUtilities.AnimatePotentialMatches(potentialMatches);
                StartCoroutine(AnimatePotentialMatchesCoroutine);
                yield return new WaitForSeconds(ConstantsVariable.WaitBeforePotentialMatchesCheck);
            }
        }
    }