public void JumpBlock(int Index) { NowPlayingBlock.OnExit(); PlayBlockIndex = Index; NowPlayingBlock = StoryBlocks[_PlayBlockIndex]; NowPlayingBlock.OnEnter(); }
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); } }
public void PlayNextBlock() //播放下一个故事区块 { if (_PlayBlockIndex > StoryBlocks.Count) { return; } if (NowPlayingBlock) { NowPlayingBlock.OnExit(); } PlayBlockIndex++; NowPlayingBlock = StoryBlocks[_PlayBlockIndex]; NowPlayingBlock.OnEnter(); }