Exemplo n.º 1
0
    public void LandShapeFX()
    {
        int i = 0;

        foreach (Transform child in gameObject.transform)
        {
            if (m_glowSquareFx[i])
            {
                m_glowSquareFx[i].transform.position = new Vector3(child.position.x, child.position.y, -2.5f);
                tetris_ParticlePlayer particlePlayer = m_glowSquareFx[i].GetComponent <tetris_ParticlePlayer>();

                if (particlePlayer)
                {
                    particlePlayer.Play();
                }
                i++;
            }
        }
    }