Esempio n. 1
0
        /// <summary>
        /// 创建节点资源
        /// </summary>
        /// <param name="type"></param>
        private void CreateStoryNodeContent(StoryNode node)
        {
            StoryContent Content = AssetCreator <StoryContent> .CreateAsset(ConfigInfo.StoryContentFolder, node.name);

            if (Content != null)
            {
                node.Content           = Content;
                Selection.activeObject = Content;
            }
            RefreshStoryNodeHeight(node);
        }
Esempio n. 2
0
 private void OnEnable()
 {
     Content = (StoryContent)target;
 }