public override Node AddNode(Type type)
        {
            var node = base.AddNode(type);

            if (node is EntryNode && entry == null)
            {
                entry = node as EntryNode;
            }
            return(node);
        }
Exemple #2
0
 internal void Init()
 {
     ResourceManager.Instance.LoadAsset <StoryGraph>(
         "Story",
         story =>
     {
         m_entry = story.entry;
         EventManager.Instance.OnEvent(GameEvent.Base_StoryLoaded);
     }
         );
 }