Exemple #1
0
    private IEnumerator Start()
    {
        if (PlayerInfo.MODE == 1)
        {
            StartCoroutine(GridManager.grid.GridMapCreate(PlayerInfo.MapPlayer.Name));
        }
        else
        {
            StartCoroutine(GridManager.grid.GridMapCreate("classic"));
        }
        yield return(new WaitForSeconds(1.5f));

        StartCoroutine(EffectSpawner.effect.ComboTick());
        Timer.timer.TimeTick(true);
        GameState = (int)Timer.GameState.PLAYING;
        NoSelector.SetActive(false);
    }
Exemple #2
0
    IEnumerator DestroyType(int type, Vector3 pos)
    {
        NoSelector.SetActive(true);
        dropFruit();
        for (int x = 0; x < 7; x++)
        {
            for (int y = 0; y < 9; y++)
            {
                FruitObj tmp = FruitSpawner.spawn.FruitGridScript[x, y];
                if (tmp != null && tmp.Fruit.FruitType == type)
                {
                    //生成特效
                    tmp.Destroy();
                }
            }
        }
        yield return(new WaitForSeconds(0.2f));

        NoSelector.SetActive(false);
    }