Exemplo n.º 1
0
        public GamePlayState(Game game) : base(game)
        {
            player1shots = new List <Shot>();
            player2shots = new List <Shot>();
            enemies      = new List <Enemy>();

            shotAnimations = new Dictionary <AnimationKey, Animation>();
            Animation animation = new Animation(1, 8, 8, 0, 0);

            shotAnimations.Add(AnimationKey.Idle, animation);

            targets             = new List <Vector2>();
            enemyListController = new EnemyListController(game, null, enemies);

            game.Services.AddService(typeof(IGamePlayState), this);
        }
Exemplo n.º 2
0
 void Awake()
 {
     _instance = this;
 }
Exemplo n.º 3
0
 void Awake()
 {
     instance = this;
 }