示例#1
0
 public void Construct(Enemy1.Factory e1, EnemySpawner spawner, EnemyFactory efactory, ICubeViewFactory cubeViewFactory)
 {
     this._enemy1Factory  = e1;
     this.spawner         = spawner;
     this.enemyFactory    = efactory;
     this.cubeViewFactory = cubeViewFactory;
 }
示例#2
0
    public static ICubeView Create(this ICubeViewFactory factory, string name)
    {
        var view = factory.Create();

        view.gameObject.name = name;
        return(view);
    }