コード例 #1
0
ファイル: Trajectory.cs プロジェクト: madmortigan/ellipse_u
    private void SetupParticle(GameObject part)
    {
        mParticle = part;
        TrajectoryParticle tPart = part.AddComponent <TrajectoryParticle>();

        tPart.Setup(this);
    }
コード例 #2
0
    private Material GetSpreadMaterial(GameObject go)
    {
        TrajectoryParticle tPart = go.GetComponent <TrajectoryParticle>();

        if (tPart == null)
        {
            return(null);
        }
        return(tPart.GetSpreadMaterial());
    }
コード例 #3
0
ファイル: Trajectory.cs プロジェクト: madmortigan/ellipse_u
    public void SetColourSpreading(Material mat)
    {
        if (mParticle == null)
        {
            return;
        }
        TrajectoryParticle tpe = mParticle.GetComponent <TrajectoryParticle>();

        if (tpe == null)
        {
            return;
        }
        tpe.SetColourSpreading(mat);
    }
コード例 #4
0
ファイル: Trajectory.cs プロジェクト: madmortigan/ellipse_u
    public void ResetSpreading()
    {
        if (mParticle == null)
        {
            return;
        }
        TrajectoryParticle tpe = mParticle.GetComponent <TrajectoryParticle>();

        if (tpe == null)
        {
            return;
        }
        tpe.ResetSpreading();
    }
コード例 #5
0
ファイル: Trajectory.cs プロジェクト: madmortigan/ellipse_u
    public void SwitchAttachParticleOnOff(bool b)
    {
        if (mParticle == null)
        {
            return;
        }
        TrajectoryParticle tpe = mParticle.GetComponent <TrajectoryParticle>();

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