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, -2f);
                ParticelPlayer particlePlayer = m_glowSquareFx[i].GetComponent <ParticelPlayer>();

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