Exemplo n.º 1
0
    IEnumerator DelayDestoryStar(float delayTime, int index, Star s)
    {
        yield return(new WaitForSeconds(delayTime));

        GUIHelper.PlayEffect(starRoot, s.transform.position, "starEffect" + (int)s.GetColor(), s.GetColor(), new Vector3(blockWidth / 2, -blockWidth / 2, 0));
        GameObject.Destroy(s.gameObject);
        PlayNumberEffect(GameNumerical.GetStarScore(index + 1), s.GetX(), s.GetY());
    }