void UpdateInfo() { if (!NotificationEditingBehavior.Instance) { return; } NotificationController.LoadViewPrefabs(); //Debug.Log(NotificationController.PrefabManager.GetPrefabList(Utility.App.Text).Length); if (!NotificationViewObject) { NotificationEditingBehavior.Instance.ClearNotificationSpace(); } if (!IsCreating) { if (m_selectedApp != Utility.App.COUNT) { m_templateOption = NotificationEditingBehavior.Instance.NotificationController.PrefabManager.GetTemplateOption(m_selectedApp); } else { m_templateOption = new string[0]; } if (m_templateOption.Length == 0) { m_templateOption = new[] { "" }; if (NotificationViewObject) { GameObject.DestroyImmediate(NotificationViewObject); NotificationViewObject = null; m_notificationData = null; } } else { if (NotificationViewObject) { GameObject.DestroyImmediate(NotificationViewObject); NotificationViewObject = null; m_notificationData = null; } NotificationView notificationView = NotificationView.CreateNotificationView(m_templateOption[m_selectedTemplate], new NotificationController.NotificationId(m_selectedApp, "Editor")); NotificationViewObject = notificationView.gameObject; m_notificationData = NotificationView.CreateDataInstance(); } } else { if (NotificationViewObject) { GameObject.DestroyImmediate(NotificationViewObject); NotificationViewObject = null; m_notificationData = null; } } }