Cradle (formerly UnityTwine) is an open-source plugin that powers the storytelling side of a game. Based on the foundations of Twine, it imports Twine stories, plays them and makes it easy to add custom interactivity via scripting.
For extensive documentation, examples and complete source code: