Exemple #1
0
    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;
        }
    }
Exemple #2
0
 public override string ToString()
 {
     return(string.Format("Shippart: {0}", OwnObject.ToString()));
 }