コード例 #1
0
        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);
        }
コード例 #2
0
 private void OpenWholeJobHistory()
 {
     if (JobHistory == null)
     {
         JobHistory         = JobHistoryWindow.New();
         JobHistory.Sources = SimManager.AllCompleteJobs;
     }
     else
     {
         JobHistory.transform.SetAsLastSibling();
     }
 }