예제 #1
0
    public void setSize(float size)
    {
        reSize();
        _size = size;
        Vector3 scale = _render.GetScale() * size;

        scale.x = Mathf.Abs(scale.x);
        _render.GetTransForm().localScale = scale;
        for (int i = 0; i < eod.particleSystemList.Count; i++)
        {
            ParticleSystem ps = eod.particleSystemList[i];
            ps.startSize  *= size;
            ps.startSpeed *= size;
        }
    }