public void Construct(Enemy1.Factory e1, EnemySpawner spawner, EnemyFactory efactory, ICubeViewFactory cubeViewFactory) { this._enemy1Factory = e1; this.spawner = spawner; this.enemyFactory = efactory; this.cubeViewFactory = cubeViewFactory; }
public static ICubeView Create(this ICubeViewFactory factory, string name) { var view = factory.Create(); view.gameObject.name = name; return(view); }