Browse Source

Added example story with boolean variable

master
chrisgregan 11 years ago
parent
commit
945f0316fc
  1. BIN
      Assets/Example/Scenes/Example.unity
  2. 2
      Assets/Fungus/Camera/Commands/MoveToView.cs
  3. 2
      Assets/Fungus/Dialog/Scripts/Dialog.cs

BIN
Assets/Example/Scenes/Example.unity

Binary file not shown.

2
Assets/Fungus/Camera/Commands/MoveToView.cs

@ -9,7 +9,7 @@ namespace Fungus.Script
"Moves the camera to a location specified by a View object.")] "Moves the camera to a location specified by a View object.")]
public class MoveToView : FungusCommand public class MoveToView : FungusCommand
{ {
public float duration; public float duration = 1;
public Fungus.View targetView; public Fungus.View targetView;
public bool waitUntilFinished = true; public bool waitUntilFinished = true;

2
Assets/Fungus/Dialog/Scripts/Dialog.cs

@ -167,10 +167,12 @@ namespace Fungus.Script
timeAccumulator += Time.deltaTime; timeAccumulator += Time.deltaTime;
bool skipWriting = false; bool skipWriting = false;
/*
if (Input.GetMouseButtonDown(0)) if (Input.GetMouseButtonDown(0))
{ {
skipWriting = true; skipWriting = true;
} }
*/
while (skipWriting || while (skipWriting ||
timeAccumulator > writeDelay) timeAccumulator > writeDelay)

Loading…
Cancel
Save