internal void Initialize(IAssetDispenser assetDispenser, ICommandSource commandSource,
                          IScreenBoundsSchecker bounds, ISessionEventsListener eventListener)
 {
     this.commandSource = commandSource;
     this.eventListener = eventListener;
     gun.Initialize(assetDispenser, bounds, eventListener);
     this.visualsRequest.RequestLoad(assetDispenser);
 }
    public void Initialize(IAssetDispenser assetDispenser, IScreenBoundsSchecker bounds,
                           ISessionEventsListener eventListener)
    {
        launchPoint = GetComponent <Transform>();

        firingQueue = new Queue <InputCommand>(Settings.FiringQueueLimit);

        this.assetDispenser = assetDispenser;
        boundsChecker       = bounds;
        this.eventListener  = eventListener;
    }
Ejemplo n.º 3
0
    public EnemySpawner(IAssetDispenser assetDispenser, ScreenBounds bounds,
                        ISessionEventsListener eventListener)
    {
        this.assetDispenser = assetDispenser;
        this.boundsChecker  = bounds;
        this.eventListener  = eventListener;

        foreach (var preset in Settings.SpawnSettings)
        {
            spawned[preset.GroupId]       = new HashSet <Enemy>();
            spawnCapCount[preset.GroupId] = preset.StartCopiesCount;
        }
    }