private void SetupParticle(GameObject part) { mParticle = part; TrajectoryParticle tPart = part.AddComponent <TrajectoryParticle>(); tPart.Setup(this); }
private Material GetSpreadMaterial(GameObject go) { TrajectoryParticle tPart = go.GetComponent <TrajectoryParticle>(); if (tPart == null) { return(null); } return(tPart.GetSpreadMaterial()); }
public void SetColourSpreading(Material mat) { if (mParticle == null) { return; } TrajectoryParticle tpe = mParticle.GetComponent <TrajectoryParticle>(); if (tpe == null) { return; } tpe.SetColourSpreading(mat); }
public void ResetSpreading() { if (mParticle == null) { return; } TrajectoryParticle tpe = mParticle.GetComponent <TrajectoryParticle>(); if (tpe == null) { return; } tpe.ResetSpreading(); }
public void SwitchAttachParticleOnOff(bool b) { if (mParticle == null) { return; } TrajectoryParticle tpe = mParticle.GetComponent <TrajectoryParticle>(); if (tpe == null) { return; } tpe.SetFollowing(b); }