32 lines
717 B
C#
Raw Normal View History

2021-07-26 22:55:09 +01:00
using UnityEngine;
namespace QSB.Tools.ProbeLauncherTool
{
public class QSBProbeLauncherTool : QSBTool
{
public GameObject PreLaunchProbeProxy;
public ProbeLauncherEffects Effects;
public SingularityWarpEffect ProbeRetrievalEffect;
public void RetrieveProbe(bool playEffects)
{
PreLaunchProbeProxy.SetActive(true);
if (playEffects)
{
Effects.PlayRetrievalClip();
ProbeRetrievalEffect.WarpObjectIn(0.3f);
}
}
public void LaunchProbe()
{
PreLaunchProbeProxy.SetActive(false);
// TODO : make this do underwater stuff correctly
Effects.PlayLaunchClip(false);
2021-07-29 23:55:37 +01:00
// TODO : this plays particles on everyone's launcher...
2021-07-26 22:55:09 +01:00
Effects.PlayLaunchParticles(false);
}
}
}