Beispiel #1
0
    public void DestroyMatchBot()
    {
        uiController.AddTime();
        while (BotMatch.Count > 0)
        {
            GameObject gm = Instantiate(DestroyParticle, new Vector2(BotMatch[0].column, BotMatch[0].row), Quaternion.identity);
            Destroy(gm, 1f);
            botArray[BotMatch[0].column, BotMatch[0].row] = null;

            Destroy(BotMatch[0].gameObject);
            BotMatch.RemoveAt(0);
        }
        audio.Play();
        StartCoroutine(BotMoveDown());
    }