public JobIcon Create(LocationJobIcons jobIcons, Job job) { jobIconPrefab.gameObject.SetActive(false); var result = container.InstantiatePrefabForComponent <JobIcon>(jobIconPrefab, jobIcons.transform); result.Configure(jobIcons, job); result.gameObject.SetActive(true); jobIconPrefab.gameObject.SetActive(true); return(result); }
public Factory(DiContainer container, LocationJobIcons locationJobIcons) { this.container = container; this.locationJobIcons = locationJobIcons; }
public void Configure(LocationJobIcons jobIcons, Job job) { Job = job; locationJobIcons = jobIcons; }