public Engine(float init_health, GameObject obj, float mass, float maxthrust = 0) : base(init_health, obj, mass) { MaxThrust = maxthrust; SpecificImpulse = 900f; particlesystem = OwnObject.GetComponentInChildren <ParticleSystem>(); if (particlesystem == null) { throw new System.NotImplementedException("No particle system on here"); } else { emitter = particlesystem.emission; } }
public override string ToString() { return(string.Format("Shippart: {0}", OwnObject.ToString())); }