Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 2
0
 public Factory(DiContainer container, LocationJobIcons locationJobIcons)
 {
     this.container        = container;
     this.locationJobIcons = locationJobIcons;
 }
Ejemplo n.º 3
0
 public void Configure(LocationJobIcons jobIcons, Job job)
 {
     Job = job;
     locationJobIcons = jobIcons;
 }