예제 #1
0
        /// <summary>
        /// 读取jump
        /// </summary>
        /// <param name="json">数据</param>
        private void ReadJump(string json)
        {
            StoryJumpData data = JsonConvert.DeserializeObject <StoryJumpData> (json);

            Debug.Log(data.jump);
            m_story.Add(data);
        }
예제 #2
0
        public List <Option> GetJump()
        {
            //for (int i = 0; i < length; i++)
            //{
            List <Option> options = new List <Option> ();

            //}
            do
            {
                StoryJumpData data   = m_story [m_index] as StoryJumpData;
                Option        option = new Option(data.jump, data.content);
                options.Add(option);

                NextStory();
            } while (m_story [m_index].typename == NodeType.jump.ToString());
            return(options);
        }