Пример #1
0
 public UnitFactory(GameObject templateUnit)
 {
     template = templateUnit.GetComponent <BookshelfController>();
     if (template == null)
     {
         Debug.Log("UnitFactory: Could not find BookshelfController script on template");
     }
 }
Пример #2
0
 public void Setup()
 {
     repository = new BookshelfRepository();
     service    = new BookshelfService(repository);
     controller = new BookshelfController(service);
 }