An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.

20 lines
332 B

using UnityEngine;
using System.Collections;
namespace Fungus
{
[CommandInfo("iTween",
"Stop Tween",
"Stops an active iTween by name.")]
public class StopTween : Command
{
public string tweenName;
public override void OnEnter()
{
iTween.StopByName(tweenName);
Continue();
}
}
}