예제 #1
0
        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);
        }
예제 #2
0
 public override void OnStoryLoaded(StoryReader reader)
 {
     if (_feedObjects.Count > 0) {
         foreach (GameObject go in _feedObjects) {
             Destroy(go);
         }
         _feedObjects.Clear();
     }
 }
예제 #3
0
 public override void OnStoryLoaded(StoryReader reader)
 {
     ClearButtons();
 }
예제 #4
0
 public void BindOption(StoryReading.StoryReader newReader, int newOptionIndex)
 {
     reader      = newReader;
     optionIndex = newOptionIndex;
 }
예제 #5
0
 //story loading
 public override void OnStoryLoaded(StoryReader reader)
 {
     if (_showDebugMessages) Debug.Log("OnStoryLoaded");
 }
예제 #6
0
 public override void OnStoryLoaded(StoryReader reader)
 {
     reader.Story.ObserveVariable(_variableName, MapVariableChanged);
 }
예제 #7
0
 //story loading
 public virtual void OnStoryLoaded(StoryReader reader)
 {
 }