public override void OnStoryLoaded(StoryReader reader) { _reader = reader; reader.Story.BindExternalFunction<string>(DECLARE_METHOD_NAME, new System.Action<string>(DeclareItem)); //observe pre-declared items foreach (ItemView view in _itemViews) ObserveVariable(view.itemName); }
public override void OnStoryLoaded(StoryReader reader) { if (_feedObjects.Count > 0) { foreach (GameObject go in _feedObjects) { Destroy(go); } _feedObjects.Clear(); } }
public override void OnStoryLoaded(StoryReader reader) { ClearButtons(); }
public void BindOption(StoryReading.StoryReader newReader, int newOptionIndex) { reader = newReader; optionIndex = newOptionIndex; }
//story loading public override void OnStoryLoaded(StoryReader reader) { if (_showDebugMessages) Debug.Log("OnStoryLoaded"); }
public override void OnStoryLoaded(StoryReader reader) { reader.Story.ObserveVariable(_variableName, MapVariableChanged); }
//story loading public virtual void OnStoryLoaded(StoryReader reader) { }