コード例 #1
0
        private void CreateProgressSection(IProgressPanel progress)
        {
            if (progress == null)
            {
                return;
            }

            if (ProgressPanelPrefab == null || MissionSectionTransform == null)
            {
                return;
            }

            GameObject obj = Instantiate(ProgressPanelPrefab);

            if (obj == null)
            {
                return;
            }

            obj.transform.SetParent(MissionSectionTransform, false);

            progressPanel = obj.GetComponent <CW_ProgressPanel>();

            if (progressPanel == null)
            {
                return;
            }

            progressPanel.setPanel(progress);
        }
コード例 #2
0
 private void Awake()
 {
     instance = this;
 }