示例#1
0
        public override void TouchesBegan(NSSet touches, UIEvent evt)
        {
            foreach (var touch in touches)
            {
                CGPoint location = (touch as UITouch).LocationInNode(this);

                if (backButton.ContainsPoint(location))
                {
                    PresentScene(new StatsScreen(View.Bounds.Size));
                    break;
                }

                for (int i = 0; i < leaderboardButtons.Count; i++)
                {
                    var button = leaderboardButtons [i];

                    if (button.ContainsPoint(location))
                    {
                        GameInfo.CurrentLeaderBoard = leaderboards [i];
                        PresentScene(new LeaderboardScoresScreen(View.Bounds.Size));
                        break;
                    }
                }
            }
        }