Browse Source

Added summary for Wait command

master
chrisgregan 10 years ago
parent
commit
3fcd6e1969
  1. 2
      Assets/Fungus/Camera/Commands/FadeToView.cs
  2. 2
      Assets/Fungus/Camera/Commands/MoveToView.cs
  3. 7
      Assets/Fungus/FungusScript/Commands/Wait.cs
  4. BIN
      Assets/Shuttle/ShuttleGame.unity

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

@ -60,7 +60,7 @@ namespace Fungus.Script
}
else
{
return "Fade to " + targetView.name;
return targetView.name;
}
}
}

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

@ -47,7 +47,7 @@ namespace Fungus.Script
}
else
{
return "Move to " + targetView.name;
return targetView.name;
}
}
}

7
Assets/Fungus/FungusScript/Commands/Wait.cs

@ -7,7 +7,7 @@ namespace Fungus.Script
[HelpText("Waits for period of time before executing the next command in the sequence.")]
public class Wait : FungusCommand
{
public float duration;
public float duration = 1;
public override void OnEnter()
{
@ -18,6 +18,11 @@ namespace Fungus.Script
{
Continue();
}
public override string GetSummary()
{
return duration.ToString() + " seconds";
}
}
}

BIN
Assets/Shuttle/ShuttleGame.unity

Binary file not shown.
Loading…
Cancel
Save