Example #1
0
 public void JumpBlock(int Index)
 {
     NowPlayingBlock.OnExit();
     PlayBlockIndex  = Index;
     NowPlayingBlock = StoryBlocks[_PlayBlockIndex];
     NowPlayingBlock.OnEnter();
 }
Example #2
0
        public bool NextBlock()
        {
            if (CurrentBlock.IsComplete)
            {
                StoryBlock prevBlock = CurrentBlock;
                prevBlock.OnEnd();

                ++CurrentBlockIndex;
                if (CurrentBlockIndex < blockList.Count)
                {
                    StoryBlock currentBlock = CurrentBlock;
                    currentBlock.OnEnter();

                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                StoryBlock currentBlock = CurrentBlock;
                currentBlock.Skip();

                return(true);
            }
        }
Example #3
0
 public void PlayNextBlock() //播放下一个故事区块
 {
     if (_PlayBlockIndex > StoryBlocks.Count)
     {
         return;
     }
     if (NowPlayingBlock)
     {
         NowPlayingBlock.OnExit();
     }
     PlayBlockIndex++;
     NowPlayingBlock = StoryBlocks[_PlayBlockIndex];
     NowPlayingBlock.OnEnter();
 }