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