try to fix tabs
This commit is contained in:
@@ -39,7 +39,7 @@ public class JobSelectorUI : MonoBehaviour
|
||||
{
|
||||
var itemUI = Instantiate(_jobTabUItemplate, _tabsContainer);
|
||||
itemUI.gameObject.SetActive(true);
|
||||
itemUI.GetComponent<JobTabUITemplate>().SetItem(this,(job.name));
|
||||
itemUI.GetComponent<JobTabUITemplate>().SetItem(this,job);
|
||||
}
|
||||
//foreach (var job in _jobs.JobPositionsList)
|
||||
//{
|
||||
@@ -62,16 +62,16 @@ public class JobSelectorUI : MonoBehaviour
|
||||
|
||||
public void OnTabEnter(JobTabUITemplate button)
|
||||
{
|
||||
print($"enter to {button.name}");
|
||||
print($"enter to {button._jobListItem.name}");
|
||||
}
|
||||
public void OnTabSelected(JobTabUITemplate button)
|
||||
{
|
||||
print($"selected {button.name}");
|
||||
print($"selected {button._jobListItem.name}");
|
||||
}
|
||||
|
||||
public void OnTabExit(JobTabUITemplate button)
|
||||
{
|
||||
print($"exit {button.name}");
|
||||
print($"exit {button._jobListItem.name}");
|
||||
}
|
||||
|
||||
private void CloseDialog()
|
||||
|
||||
Reference in New Issue
Block a user