Animate passenger venues and add port-specific cinematics
This commit is contained in:
@@ -38,7 +38,10 @@ namespace Soundings
|
||||
private void Initialize()
|
||||
{
|
||||
System.Globalization.CultureInfo.CurrentCulture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
|
||||
autoSmoke = Array.IndexOf(Environment.GetCommandLineArgs(), "-soundings-smoke") >= 0;
|
||||
string[] arguments = Environment.GetCommandLineArgs();
|
||||
int clipArgument = Array.IndexOf(arguments, "-soundings-port-clips");
|
||||
bool exportClips = clipArgument >= 0 && clipArgument + 1 < arguments.Length;
|
||||
autoSmoke = exportClips || Array.IndexOf(arguments, "-soundings-smoke") >= 0;
|
||||
Application.targetFrameRate = 60;
|
||||
harbor = gameObject.AddComponent<Harbor>();
|
||||
harbor.Initialize();
|
||||
@@ -66,7 +69,9 @@ namespace Soundings
|
||||
}
|
||||
company = autoSmoke ? null : Load();
|
||||
Render();
|
||||
if (autoSmoke)
|
||||
if (exportClips)
|
||||
StartCoroutine(ExportPortClips(arguments[clipArgument + 1]));
|
||||
else if (autoSmoke)
|
||||
StartCoroutine(VisualSmoke());
|
||||
}
|
||||
|
||||
@@ -196,6 +201,8 @@ namespace Soundings
|
||||
|
||||
if (title || company == null)
|
||||
DrawTitle();
|
||||
else if (harbor.PortCinematicActive)
|
||||
DrawPortCinematic();
|
||||
else
|
||||
{
|
||||
RefreshGuide();
|
||||
|
||||
Reference in New Issue
Block a user