public UnitFactory(GameObject templateUnit) { template = templateUnit.GetComponent <BookshelfController>(); if (template == null) { Debug.Log("UnitFactory: Could not find BookshelfController script on template"); } }
public void Setup() { repository = new BookshelfRepository(); service = new BookshelfService(repository); controller = new BookshelfController(service); }