private void OnClick() { if (isActive && UICamera.currentTouchID == -1 && GameSystem.Instance.GameState == GameState.ChapterJumpScreen) { StateChapterJump stateChapterJump = GameSystem.Instance.GetStateObject() as StateChapterJump; if (stateChapterJump != null) { stateChapterJump.RequestLeave(); if (!(base.name == "Return")) { BurikoScriptSystem.Instance.JumpToBlock(BlockName); } } } }
private void OnClick() { if (isActive && UICamera.currentTouchID >= -1 && GameSystem.Instance.GameState == GameState.ChapterJumpScreen) { StateChapterJump stateChapterJump = GameSystem.Instance.GetStateObject() as StateChapterJump; if (stateChapterJump != null) { stateChapterJump.RequestLeave(); if (!(base.name == "Return")) { BurikoMemory.Instance.SetFlag("s_jump", ChapterNumber); Debug.Log("Setting chapter to " + ChapterNumber); BurikoScriptSystem.Instance.JumpToBlock("Game"); } } } }