/// <summary>
 /// 任务属性GUI
 /// </summary>
 private void OnPropertyGUI()
 {
     if (_isShowProperty)
     {
         if (_currentContent != null)
         {
             _currentContent.OnEditorGUI();
         }
         else
         {
             GUILayout.Label("Please select a Task Content!", EditorStyles.boldLabel);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// 任务内容属性GUI
 /// </summary>
 private void OnPropertyGUI()
 {
     if (_isShowProperty)
     {
         if (_currentContent != null)
         {
             _currentContent.OnEditorGUI(_contentAsset, _getWord, _isLockID);
         }
         else
         {
             GUILayout.BeginHorizontal();
             string prompt = CurrentLanguage == Language.English ? "Please select a Task Content!" : "请选择一个任务内容!";
             GUILayout.Label(prompt, EditorStyles.boldLabel);
             GUILayout.EndHorizontal();
         }
     }
 }