Example #1
0
    IEnumerator Destroy_Tile_With_Tag(string tag)
    {
        yield return(new WaitForSeconds(0.5f));

        GameObject [] willDestroyeds = GameObject.FindGameObjectsWithTag(tag);
        foreach (GameObject willDestroyed in willDestroyeds)
        {
            grid.gameManager.Get_Score(1);
            Destroy(willDestroyed);
        }
        StartCoroutine(grid.Decrease_Row());
    }