mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Geyser durations
This commit is contained in:
parent
da8ef0db92
commit
2ce2241e7b
@ -39,6 +39,9 @@ namespace NewHorizons.Builder.Props
|
|||||||
if (info.disableBubbles) bubbles.SetActive(false);
|
if (info.disableBubbles) bubbles.SetActive(false);
|
||||||
if (info.disableShaft) shaft.SetActive(false);
|
if (info.disableShaft) shaft.SetActive(false);
|
||||||
if (info.disableSpout) spout.SetActive(false);
|
if (info.disableSpout) spout.SetActive(false);
|
||||||
|
var geyserController = geyserGO.GetComponent<GeyserController>();
|
||||||
|
geyserController._activeDuration = info.activeDuration;
|
||||||
|
geyserController._inactiveDuration = info.inactiveDuration;
|
||||||
|
|
||||||
geyserGO.SetActive(true);
|
geyserGO.SetActive(true);
|
||||||
|
|
||||||
@ -79,7 +82,6 @@ namespace NewHorizons.Builder.Props
|
|||||||
{
|
{
|
||||||
oneShotAudio.transform.SetLocalPositionY(67f);
|
oneShotAudio.transform.SetLocalPositionY(67f);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
NewHorizons/External/Modules/PropModule.cs
vendored
10
NewHorizons/External/Modules/PropModule.cs
vendored
@ -239,6 +239,16 @@ namespace NewHorizons.External.Modules
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[DefaultValue(55f)] public float force = 55f;
|
[DefaultValue(55f)] public float force = 55f;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Time in seconds eruptions last for
|
||||||
|
/// </summary>
|
||||||
|
[DefaultValue(10f)] public float activeDuration = 10f;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Time in seconds between eruptions
|
||||||
|
/// </summary>
|
||||||
|
[DefaultValue(19f)] public float inactiveDuration = 19f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Color of the geyser. Alpha sets the particle density.
|
/// Color of the geyser. Alpha sets the particle density.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user