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); }
void Awake() { _instance = this; }
void Awake() { instance = this; }