Пример #1
0
 public GameLayer()
 {
     this._layerDrawer  = new LayerDrawer(this);
     this._wallsFactory = new WallsFactory();
     Color   = GameColors.BackgroundColor;
     Opacity = 255;
 }
Пример #2
0
        public GameStartLayer() : base()
        {
            this._layerDrawer = new LayerDrawer(this);

            var touchListener = new CCEventListenerTouchAllAtOnce();

            touchListener.OnTouchesEnded = (touches, ccevent) =>
            {
                var scene = new GameScene(this.GameView);
                Game.Instance.IsPlaying = true;
                this.GameView.Director.ReplaceScene(scene);
            };

            AddEventListener(touchListener, this);

            Color   = GameColors.BackgroundColor;
            Opacity = 255;
        }