示例#1
0
        public MochiPreloader()
        {
            loaderInfo.ioError +=
                delegate
            {
                // Ignore event to prevent unhandled error exception
            };

            new Options
            {
                clip        = this,
                id          = _mochiads_game_id,
                res         = FlashTowerDefenseSplitScreen.DefaultWidth + "x" + FlashTowerDefenseSplitScreen.DefaultHeight,
                ad_finished =
                    delegate
                {
                    var c = new FlashTowerDefenseSplitScreen();

                    stage.addChild(
                        c
                        );
                }
            }.showPreGameAd();
        }
        public MochiPreloader()
        {
            loaderInfo.ioError +=
                delegate
                {
                    // Ignore event to prevent unhandled error exception
                };

            new Options
            {
                clip = this,
                id = _mochiads_game_id,
                res = FlashTowerDefenseSplitScreen.DefaultWidth + "x" + FlashTowerDefenseSplitScreen.DefaultHeight,
                ad_finished =
                    delegate
                    {
                        var c = new FlashTowerDefenseSplitScreen();

                        stage.addChild(
                            c
                            );
                    }

            }.showPreGameAd();
        }