Beispiel #1
0
        void FixedUpdate()
        {
            if (is_game_over)
            {
                return;
            }

            if (!IsBallInWorldBounds())
            {
                Game.StopSession();
                return;
            }

            result.distance += dist_delta * Time.fixedDeltaTime;
            ball.SetSpeed(result.distance * 0.1f);

            DestroyBlocks();
            GenerateBlocks();
        }