2017-04-12 01:23:07 +09:00

18 lines
361 B
C#

using UnityEngine;
[AddComponentMenu("Destructible 2D/D2D Mothership Thruster")]
public class D2D_MothershipThruster : MonoBehaviour
{
public ParticleSystem Particles;
public D2D_MothershipCore Core;
protected virtual void Update()
{
// Core not connected?
if (Particles != null && Core == null)
{
Particles.enableEmission = false;
}
}
}