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