public override void Click(int x, int y) { float virtX = x - m_ScrollPosition; m_iSelectedIndex = (int)(virtX / (m_IconSize + m_ClueSpace)); if (m_iSelectedIndex < m_Clues.Count) { SoundManager.Inst.PlaySound(SoundManager.SEInst.MenuAccept); GameScene.SelectClue(m_Clues[m_iSelectedIndex], this); } else { GameScene.SelectClue(null, this); ClearSelected(); } }
public override void Click(int x, int y) { float virtY = y - m_ScrollPosition; m_iSelectedIndex = (int)(virtY / (m_IconSize + m_ClueSpace)); if (m_iSelectedIndex < m_Clues.Count) { SoundManager.Inst.PlaySound(SoundManager.SEInst.MenuAccept); GameScene.SelectClue(m_Clues[m_iSelectedIndex], this); if (m_iSelectedIndex == 0) { GameScene.Game.Tutorial.FinishPiece(TutorialSystem.TutorialPiece.HorizontalClueArea); GameScene.Game.Tutorial.FinishPiece(TutorialSystem.TutorialPiece.Hint2); } else if (m_iSelectedIndex == 1) { GameScene.Game.Tutorial.FinishPiece(TutorialSystem.TutorialPiece.HorizontalClue2a); } else if (m_iSelectedIndex == 2) { GameScene.Game.Tutorial.FinishPiece(TutorialSystem.TutorialPiece.HorizontalClue3a); } else if (m_iSelectedIndex == 3) { GameScene.Game.Tutorial.FinishPiece(TutorialSystem.TutorialPiece.HorizontalClue4b); } else if (m_iSelectedIndex == 4) { GameScene.Game.Tutorial.FinishPiece(TutorialSystem.TutorialPiece.HorizontalClue5a); } } else { GameScene.SelectClue(null, this); ClearSelected(); } }