void OpenJobHistoryWindow()
        {
            var jhw = JobHistoryWindow.New();

            jhw.Sources      = ((RetiredDrone)Source).JobHistory;
            jhw.Opener       = OpenJobHistoryWindow;
            jhw.CreatorEvent = JobHistory.onClick;
            JobHistory.onClick.RemoveAllListeners();
            JobHistory.onClick.AddListener(jhw.transform.SetAsLastSibling);
        }
Beispiel #2
0
 private void OpenWholeJobHistory()
 {
     if (JobHistory == null)
     {
         JobHistory         = JobHistoryWindow.New();
         JobHistory.Sources = SimManager.AllCompleteJobs;
     }
     else
     {
         JobHistory.transform.SetAsLastSibling();
     }
 }