示例#1
0
    public void ClearAllMatches()
    {
        if (render.sprite == null)
        {
            return;
        }

        ClearMatch(new Vector2Int[2] {
            Vector2Int.left, Vector2Int.right
        });
        ClearMatch(new Vector2Int[2] {
            Vector2Int.up, Vector2Int.down
        });
        if (matchFound)
        {
            render.sprite = null;
            matchFound    = false;
            StopCoroutine(fieldManager.FindNullTiles());
            StartCoroutine(fieldManager.FindNullTiles());
            //PlaySomeSound
        }
    }