Esempio n. 1
0
    private void SetupParticle(GameObject part)
    {
        mParticle = part;
        TrajectoryParticle tPart = part.AddComponent <TrajectoryParticle>();

        tPart.Setup(this);
    }
Esempio n. 2
0
    private Material GetSpreadMaterial(GameObject go)
    {
        TrajectoryParticle tPart = go.GetComponent <TrajectoryParticle>();

        if (tPart == null)
        {
            return(null);
        }
        return(tPart.GetSpreadMaterial());
    }
Esempio n. 3
0
    public void SetColourSpreading(Material mat)
    {
        if (mParticle == null)
        {
            return;
        }
        TrajectoryParticle tpe = mParticle.GetComponent <TrajectoryParticle>();

        if (tpe == null)
        {
            return;
        }
        tpe.SetColourSpreading(mat);
    }
Esempio n. 4
0
    public void ResetSpreading()
    {
        if (mParticle == null)
        {
            return;
        }
        TrajectoryParticle tpe = mParticle.GetComponent <TrajectoryParticle>();

        if (tpe == null)
        {
            return;
        }
        tpe.ResetSpreading();
    }
Esempio n. 5
0
    public void SwitchAttachParticleOnOff(bool b)
    {
        if (mParticle == null)
        {
            return;
        }
        TrajectoryParticle tpe = mParticle.GetComponent <TrajectoryParticle>();

        if (tpe == null)
        {
            return;
        }
        tpe.SetFollowing(b);
    }