void EndGame() { // Stop scheduled events as we transition to game over scene UnscheduleAll(); var gameOverScene = GameOverLayer.SceneWithScore (Window, hitBananas.Count); var transitionToGameOver = new CCTransitionMoveInR (0.3f, gameOverScene); Director.ReplaceScene (transitionToGameOver); }
void EndGame () { var gameOverScene = GameOverLayer.SceneWithScore (Window, hitBananas.Count); var transitionToGameOver = new CCTransitionMoveInR (0.3f, gameOverScene); Director.ReplaceScene (transitionToGameOver); }