public MonogameGhost(Game game)
            : base(game)
        {
            this.ghost       = new GameConsoleGhost((GameConsole)game.Services.GetService <IGameConsole>());
            strGhostTexture  = "RedGhost";
            this.ghost.State = GhostState.Roving;

            r = new Random();
        }
示例#2
0
        public MonogameGhost(Game game)
            : base(game)
        {
            SM               = (ShotHandler.ShotManager)game.Services.GetService(typeof(ShotHandler.IShotHandler));
            this.ghost       = new GameConsoleGhost((GameConsole)game.Services.GetService <IGameConsole>());
            strGhostTexture  = "RedGhost";
            this.ghost.State = GhostState.Roving;

            r = new Random();
        }