Add interactive dome view and five-chapter story
This commit is contained in:
@@ -13,6 +13,7 @@ namespace DomeShift
|
||||
private readonly Transform[] supplyItems = new Transform[3];
|
||||
private readonly Transform[] carriedItems = new Transform[3];
|
||||
private readonly Transform root;
|
||||
private readonly Transform equipment;
|
||||
private readonly Material hull;
|
||||
private readonly Material trim;
|
||||
private readonly Material metal;
|
||||
@@ -41,6 +42,7 @@ namespace DomeShift
|
||||
{
|
||||
this.environment = environment;
|
||||
root = Group(parent, "Shift equipment and crew", Vector3.zero);
|
||||
equipment = Group(root, "Timed shift equipment", Vector3.zero);
|
||||
hull = Surface("#10262E");
|
||||
trim = Surface("#2A5356", 0.18f, 0.28f);
|
||||
metal = Surface("#6C9694", 0.32f, 0.35f);
|
||||
@@ -90,6 +92,11 @@ namespace DomeShift
|
||||
doyle.gameObject.SetActive(isDoyle);
|
||||
}
|
||||
|
||||
public void SetShiftEquipmentVisible(bool visible)
|
||||
{
|
||||
equipment.gameObject.SetActive(visible);
|
||||
}
|
||||
|
||||
public void Tick(Vector2 motion, int carried, int repairedMask, float elapsed)
|
||||
{
|
||||
if (motion.sqrMagnitude > 0.01f)
|
||||
@@ -155,7 +162,7 @@ namespace DomeShift
|
||||
|
||||
private void AddGenerator()
|
||||
{
|
||||
Transform unit = Group(root, "Generator", AtSite(0));
|
||||
Transform unit = Group(equipment, "Generator", AtSite(0));
|
||||
StationPad(unit, 0);
|
||||
Box(unit, "Generator chassis", new Vector3(0f, 0.7f, 0.48f), new Vector3(2.32f, 1.08f, 1.26f), hull);
|
||||
Box(unit, "Generator enamel", new Vector3(0f, 1.22f, 0.48f), new Vector3(2.24f, 0.25f, 1.2f), colors[0]);
|
||||
@@ -187,7 +194,7 @@ namespace DomeShift
|
||||
|
||||
private void AddCoolant()
|
||||
{
|
||||
Transform unit = Group(root, "Coolant", AtSite(1));
|
||||
Transform unit = Group(equipment, "Coolant", AtSite(1));
|
||||
StationPad(unit, 1);
|
||||
Cylinder(unit, "Reservoir base", new Vector3(0f, 0.22f, 0.53f), new Vector3(2.17f, 0.28f, 1.62f), hull);
|
||||
for (int side = -1; side <= 1; side += 2)
|
||||
@@ -219,7 +226,7 @@ namespace DomeShift
|
||||
|
||||
private void AddHydroponics()
|
||||
{
|
||||
Transform unit = Group(root, "Hydroponics", AtSite(2));
|
||||
Transform unit = Group(equipment, "Hydroponics", AtSite(2));
|
||||
StationPad(unit, 2);
|
||||
Planter(unit, new Vector3(0f, 0f, 0.62f), 2.62f, 1.26f, 6);
|
||||
Box(unit, "Irrigation control", new Vector3(0f, 0.48f, -0.16f), new Vector3(0.9f, 0.44f, 0.32f), hull);
|
||||
@@ -267,7 +274,7 @@ namespace DomeShift
|
||||
|
||||
private void AddSupply(int index)
|
||||
{
|
||||
Transform shelf = Group(root, "Parts plinth " + (index + 1), AtSite(index + 3));
|
||||
Transform shelf = Group(equipment, "Parts plinth " + (index + 1), AtSite(index + 3));
|
||||
Cylinder(shelf, "Supply floor ring", new Vector3(0f, 0.013f, 0f), new Vector3(1.49f, 0.022f, 1.49f), colors[index]);
|
||||
Cylinder(shelf, "Supply floor inset", new Vector3(0f, 0.028f, 0f), new Vector3(1.35f, 0.018f, 1.35f), hull);
|
||||
Cylinder(shelf, "Plinth", new Vector3(0f, 0.21f, 0f), new Vector3(0.83f, 0.35f, 0.83f), trim);
|
||||
|
||||
Reference in New Issue
Block a user