public static SgtSingularityModel Create(SgtSingularity singularity) { var model = SgtComponentPool <SgtSingularityModel> .Pop("Model", singularity.transform); model.Singularity = singularity; return(model); }
public static SgtPatch Create(string name, SgtTerrain terrain, Transform parent) { var patch = SgtComponentPool <SgtPatch> .Pop(name, parent); patch.Terrain = terrain; return(patch); }
public static SgtLightning Create(SgtLightningSpawner lightningSpawner) { var model = SgtComponentPool <SgtLightning> .Pop(lightningSpawner.transform, "Lightning", lightningSpawner.gameObject.layer); model.LightningSpawner = lightningSpawner; return(model); }
public static SgtJovianModel Create(SgtJovian jovian) { var model = SgtComponentPool <SgtJovianModel> .Pop(jovian.transform, "Jovian Model", jovian.gameObject.layer); model.Jovian = jovian; return(model); }
public static SgtQuadsModel Create(SgtQuads quads) { var model = SgtComponentPool <SgtQuadsModel> .Pop(quads.transform, "Quads Model", quads.gameObject.layer); model.Quads = quads; return(model); }
public static SgtCloudsphereModel Create(SgtCloudsphere cloudsphere) { var model = SgtComponentPool <SgtCloudsphereModel> .Pop("Model", cloudsphere.gameObject.layer, cloudsphere.transform); model.Cloudsphere = cloudsphere; return(model); }
public static SgtProminencePlane Create(SgtProminence prominence) { var plane = SgtComponentPool <SgtProminencePlane> .Pop(prominence.transform, "Plane", prominence.gameObject.layer); plane.Prominence = prominence; return(plane); }
public static SgtRingSegment Create(SgtRing ring) { var segment = SgtComponentPool <SgtRingSegment> .Pop("Segment", ring.gameObject.layer, ring.transform); segment.Ring = ring; return(segment); }
public static SgtCloudsphereModel Create(SgtCloudsphere cloudsphere) { var model = SgtComponentPool<SgtCloudsphereModel>.Pop("Model", cloudsphere.transform); model.Cloudsphere = cloudsphere; return model; }
public static SgtAtmosphereOuter Create(SgtAtmosphere atmosphere) { var outer = SgtComponentPool <SgtAtmosphereOuter> .Pop(atmosphere.transform, "Outer", atmosphere.gameObject.layer); outer.Atmosphere = atmosphere; return(outer); }
public static SgtSkysphereModel Create(SgtSkysphere skysphere) { var model = SgtComponentPool <SgtSkysphereModel> .Pop(skysphere.transform, "Model", skysphere.gameObject.layer); model.Skysphere = skysphere; return(model); }
public static SgtCoronaOuter Create(SgtCorona corona) { var outer = SgtComponentPool <SgtCoronaOuter> .Pop("Outer", corona.gameObject.layer, corona.transform); outer.Corona = corona; return(outer); }
public static SgtJovianModel Create(SgtJovian jovian) { var model = SgtComponentPool <SgtJovianModel> .Pop("Model", jovian.transform); model.Jovian = jovian; return(model); }
public static SgtBeltGroup Create(SgtBelt belt) { var group = SgtComponentPool <SgtBeltGroup> .Pop("Group", belt.gameObject.layer, belt.transform); group.Belt = belt; return(group); }
public static SgtThrusterFlare Create(SgtThruster thruster) { var flare = SgtComponentPool <SgtThrusterFlare> .Pop("Flare", thruster.gameObject.layer, thruster.transform); flare.Thruster = thruster; return(flare); }
public static SgtAuroraModel Create(SgtAurora aurora) { var model = SgtComponentPool <SgtAuroraModel> .Pop(aurora.transform, "Plane", aurora.gameObject.layer); model.Aurora = aurora; return(model); }
public static SgtStarfieldGroup Create(SgtStarfield starfield) { var group = SgtComponentPool <SgtStarfieldGroup> .Pop("Group", starfield.transform); group.Starfield = starfield; return(group); }
public static SgtRingModel Create(SgtRing ring) { var segment = SgtComponentPool <SgtRingModel> .Pop(ring.transform, "Ring Model", ring.gameObject.layer); segment.Ring = ring; return(segment); }
public static SgtFlareModel Create(SgtFlare flare) { var model = SgtComponentPool <SgtFlareModel> .Pop(flare.transform, "Flare Model", flare.gameObject.layer); model.Flare = flare; return(model); }
public static void Pool(SgtRingSegment segment) { if (segment != null) { segment.Ring = null; SgtComponentPool <SgtRingSegment> .Add(segment); } }
protected virtual void Update() { Life -= Time.deltaTime; if (Life <= 0.0f) { SgtComponentPool <SgtLightning> .Add(this); } }
public static void Pool(SgtJovianModel model) { if (model != null) { model.Jovian = null; SgtComponentPool <SgtJovianModel> .Add(model); } }
public static void Pool(SgtThrusterFlare flare) { if (flare != null) { flare.Thruster = null; SgtComponentPool <SgtThrusterFlare> .Add(flare); } }
public static void Pool(SgtCoronaOuter outer) { if (outer != null) { outer.Corona = null; SgtComponentPool <SgtCoronaOuter> .Add(outer); } }
public static void Pool(SgtCloudsphereModel model) { if (model != null) { model.Cloudsphere = null; SgtComponentPool <SgtCloudsphereModel> .Add(model); } }
public static void Pool(SgtAtmosphereOuter outer) { if (outer != null) { outer.Atmosphere = null; SgtComponentPool <SgtAtmosphereOuter> .Add(outer); } }
public static void Pool(SgtLightning model) { if (model != null) { model.LightningSpawner = null; SgtComponentPool <SgtLightning> .Add(model); } }
public static void Pool(SgtProminencePlane plane) { if (plane != null) { plane.Prominence = null; SgtComponentPool <SgtProminencePlane> .Add(plane); } }
public static void Pool(SgtSingularityModel model) { if (model != null) { model.Singularity = null; SgtComponentPool <SgtSingularityModel> .Add(model); } }
public static void Pool(SgtAuroraModel model) { if (model != null) { model.Aurora = null; SgtComponentPool <SgtAuroraModel> .Add(model); } }