コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: GameLayer.cs プロジェクト: Adameg/mobile-samples
 void EndGame ()
 {
     var gameOverScene = GameOverLayer.SceneWithScore (Window, hitBananas.Count);
     var transitionToGameOver = new CCTransitionMoveInR (0.3f, gameOverScene);
     Director.ReplaceScene (transitionToGameOver);
 }