浏览代码

Fix Quests SO

/main
uChema 3 年前
当前提交
37e5adb2
共有 31 个文件被更改,包括 251 次插入104 次删除
  1. 3
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline1/Quest1/Step2/ID-S2-Q1-QL1.asset
  2. 7
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline1/Quest1/Step2/SD-S2-Q1-QL1.asset
  3. 6
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline1/Quest1/Step3/SD-S3-Q1-QL1.asset
  4. 13
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline1/Quest1/Step5/SD-S5-Q1-QL1.asset
  5. 20
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest1/Step2/SD-S2-Q1-QL2.asset
  6. 5
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest1/Step3/SD-S3-Q1-QL2.asset
  7. 6
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest1/Step4/SD-S4-Q1-QL2.asset
  8. 7
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest2/Step1/SD-S1-Q2-QL2.asset
  9. 3
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest2/Step2/CD-S2-Q2-QL2.asset
  10. 3
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest2/Step2/ID-S2-Q2-QL2.asset
  11. 11
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest2/Step2/SD-S2-Q2-QL2.asset
  12. 6
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest2/Step3/SD-S3-Q2-QL2.asset
  13. 5
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline3/Quest1/Step1/SD-S1-Q1-QL3.asset
  14. 29
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline3/Quest1/Step2/SD-S2-Q1-QL3.asset
  15. 18
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step1/SD-S1-Q1-QL4.asset
  16. 18
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step2/SD-S2-Q1-QL4.asset
  17. 6
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step3/CD-S3-Q1-QL4.asset
  18. 1
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step3/ID-S3-Q1-QL4.asset
  19. 14
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step3/SD-S3-Q1-QL4.asset
  20. 11
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step5/CD-S5-Q1-QL4.asset
  21. 11
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step5/ID-S5-Q1-QL4.asset
  22. 9
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step5/SD-S5-Q1-QL4.asset
  23. 7
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step6/SD-S6-Q1-QL4.asset
  24. 11
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline5/Quest1/Step1/SD-S1-Q1-QL5.asset
  25. 5
      UOP1_Project/Assets/ScriptableObjects/Quests/Questline5/Quest1/Step2/SD-S2-Q1-QL5.asset
  26. 33
      UOP1_Project/Assets/Scripts/Dialogues/DialogueDataSO.cs
  27. 57
      UOP1_Project/Assets/Scripts/Quests/Editor/QuestEditorWindow.cs
  28. 4
      UOP1_Project/Assets/Scripts/Quests/ScriptableObjects/StepSO.cs
  29. 4
      UOP1_Project/Packages/manifest.json
  30. 18
      UOP1_Project/Packages/packages-lock.json
  31. 4
      UOP1_Project/ProjectSettings/ProjectVersion.txt

3
UOP1_Project/Assets/ScriptableObjects/Quests/Questline1/Quest1/Step2/ID-S2-Q1-QL1.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: ID-S2-Q1-QL1
m_EditorClassIdentifier:
_actor: {fileID: 0}
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: Questline Dialogue

m_FallbackState: 0
m_WaitForCompletion: 1
_choices: []
_dialogueType: 2

7
UOP1_Project/Assets/ScriptableObjects/Quests/Questline1/Quest1/Step2/SD-S2-Q1-QL1.asset


m_KeyId: 0
m_Key: L1-SD-S2-Q1-QL1
m_FallbackState: 0
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
_nextDialogue: {fileID: 11400000, guid: e62b8585a737f2c4eb54378a8886269c, type: 2}
_actionType: 1
m_WaitForCompletion: 1
_nextDialogue: {fileID: 0}
_actionType: 0
- _response:
m_TableReference:
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3

m_FallbackState: 0
m_WaitForCompletion: 1
_nextDialogue: {fileID: 11400000, guid: 473361716230ea64da50adc3c5dc5a67, type: 2}
_actionType: 0
_dialogueType: 0

6
UOP1_Project/Assets/ScriptableObjects/Quests/Questline1/Quest1/Step3/SD-S3-Q1-QL1.asset


m_KeyId: 0
m_Key: L1-SD-S3-Q1-QL1
m_FallbackState: 0
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
m_WaitForCompletion: 1
_actionType: 1
_choiceClickedEvent: {fileID: 0}
_playDialogueEvent: {fileID: 11400000, guid: 5cfe626f5482b914a9e46ebbe35ea1a8,
type: 2}
_dialogueType: 0

13
UOP1_Project/Assets/ScriptableObjects/Quests/Questline1/Quest1/Step5/SD-S5-Q1-QL1.asset


_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3
m_TableCollectionName: Questline Dialogue
m_KeyId: 47047907408207872
m_Key:
m_KeyId: 0
m_Key: L1-SD-S5-Q1-QL1
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
_nextDialogue: {fileID: 11400000, guid: f1c3b2d99b9627b44904c2d869e9e3e6, type: 2}
_actionType: 1
m_WaitForCompletion: 1
_nextDialogue: {fileID: 0}
_actionType: 0
- _response:
m_TableReference:
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3

m_FallbackState: 0
m_WaitForCompletion: 1
_nextDialogue: {fileID: 11400000, guid: fb4ddb997f3860d4eaf7024c8a669a6d, type: 2}
_actionType: 0
_dialogueType: 0

20
UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest1/Step2/SD-S2-Q1-QL2.asset


_actor: {fileID: 11400000, guid: 5e7bd0eed8324794fad1bc460c565ecb, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3
m_TableCollectionName: Questline Dialogue
m_KeyId: 47359752132222976
m_Key:
m_KeyId: 0
m_Key: L1-SD-S2-Q1-QL2
m_WaitForCompletion: 1
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3
m_TableCollectionName: Questline Dialogue
m_KeyId: 238002475229187
m_Key:
m_KeyId: 0
m_Key: L2-SD-S2-Q1-QL2
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
_nextDialogue: {fileID: 0}
_actionType: 0
m_WaitForCompletion: 1
_nextDialogue: {fileID: 11400000, guid: e62b8585a737f2c4eb54378a8886269c, type: 2}
_choiceClickedEvent: {fileID: 0}
_playDialogueEvent: {fileID: 0}
_dialogueType: 0

5
UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest1/Step3/SD-S3-Q1-QL2.asset


m_KeyId: 0
m_Key: L1-SD-S3-Q1-QL2
m_FallbackState: 0
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
m_WaitForCompletion: 1
_actionType: 1
_actionType: 0
- _response:
m_TableReference:
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3

m_FallbackState: 0
m_WaitForCompletion: 1
_nextDialogue: {fileID: 11400000, guid: 90aea200dfd0fc447b0e597c781aa6b0, type: 2}
_actionType: 0
_dialogueType: 0

6
UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest1/Step4/SD-S4-Q1-QL2.asset


m_KeyId: 0
m_Key: L1-SD-S4-Q1-QL2
m_FallbackState: 0
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
m_WaitForCompletion: 1
_actionType: 0
_choiceClickedEvent: {fileID: 0}
_playDialogueEvent: {fileID: 11400000, guid: 5cfe626f5482b914a9e46ebbe35ea1a8,
type: 2}
_dialogueType: 0

7
UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest2/Step1/SD-S1-Q2-QL2.asset


m_KeyId: 0
m_Key: L1-SD-S1-Q2-QL2
m_FallbackState: 0
m_WaitForCompletion: 1
- m_TableReference:
m_TableCollectionName: Questline Dialogue
m_TableEntryReference:

m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
m_WaitForCompletion: 1
_actionType: 0
_choiceClickedEvent: {fileID: 0}
_playDialogueEvent: {fileID: 11400000, guid: 5cfe626f5482b914a9e46ebbe35ea1a8,
type: 2}
_dialogueType: 0

3
UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest2/Step2/CD-S2-Q2-QL2.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: CD-S2-Q2-QL2
m_EditorClassIdentifier:
_actor: {fileID: 0}
_actor: {fileID: 11400000, guid: b8d80efffb7881e4ebeb39806d2c6d18, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: Questline Dialogue

m_FallbackState: 0
m_WaitForCompletion: 1
_choices: []
_dialogueType: 1

3
UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest2/Step2/ID-S2-Q2-QL2.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: ID-S2-Q2-QL2
m_EditorClassIdentifier:
_actor: {fileID: 0}
_actor: {fileID: 11400000, guid: b8d80efffb7881e4ebeb39806d2c6d18, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: Questline Dialogue

m_FallbackState: 0
m_WaitForCompletion: 1
_choices: []
_dialogueType: 2

11
UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest2/Step2/SD-S2-Q2-QL2.asset


_actor: {fileID: 11400000, guid: b8d80efffb7881e4ebeb39806d2c6d18, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3
m_TableCollectionName: Questline Dialogue
m_KeyId: 47064574574059520
m_Key:
m_KeyId: 0
m_Key: L1-SD-S2-Q2-QL2
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
m_WaitForCompletion: 1
_actionType: 1
_actionType: 0
- _response:
m_TableReference:
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3

m_FallbackState: 0
m_WaitForCompletion: 1
_nextDialogue: {fileID: 11400000, guid: bd0260c77c02f624aa9ad8a0a472bdb7, type: 2}
_actionType: 0
_dialogueType: 0

6
UOP1_Project/Assets/ScriptableObjects/Quests/Questline2/Quest2/Step3/SD-S3-Q2-QL2.asset


m_KeyId: 0
m_Key: L1-SD-S3-Q2-QL2
m_FallbackState: 0
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
m_WaitForCompletion: 1
_actionType: 0
_choiceClickedEvent: {fileID: 0}
_playDialogueEvent: {fileID: 11400000, guid: 5cfe626f5482b914a9e46ebbe35ea1a8,
type: 2}
_dialogueType: 0

5
UOP1_Project/Assets/ScriptableObjects/Quests/Questline3/Quest1/Step1/SD-S1-Q1-QL3.asset


m_KeyId: 0
m_Key: L1-SD-S1-Q1-QL3
m_FallbackState: 0
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
_nextDialogue: {fileID: 11400000, guid: 0acf04e29cba31846a16188109880cc1, type: 2}
m_WaitForCompletion: 1
_nextDialogue: {fileID: 0}
_actionType: 1
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
m_WaitForCompletion: 1
_nextDialogue: {fileID: 11400000, guid: a890798e853a0b64690a336e75c1b127, type: 2}
_actionType: 0
_dialogueType: 0

29
UOP1_Project/Assets/ScriptableObjects/Quests/Questline3/Quest1/Step2/SD-S2-Q1-QL3.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: SD-S2-Q1-QL3
m_EditorClassIdentifier:
_actor: {fileID: 0}
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
m_KeyId: 47073457984102400
m_Key:
m_KeyId: 0
m_Key: L1-SD-S2-Q1-QL3
m_WaitForCompletion: 1
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3
m_TableCollectionName: Questline Dialogue
m_KeyId: 47073068710748160
m_Key:
m_KeyId: 0
m_Key: L2-SD-S2-Q1-QL3
m_WaitForCompletion: 1
m_KeyId: 47073689857810432
m_Key:
m_KeyId: 0
m_Key: L3-SD-S2-Q1-QL3
m_WaitForCompletion: 1
m_KeyId: 47074112706568192
m_Key:
m_KeyId: 0
m_Key: L4-SD-S2-Q1-QL3
m_WaitForCompletion: 1
m_KeyId: 47074164204232704
m_Key:
m_KeyId: 0
m_Key: L5-SD-S2-Q1-QL3
m_WaitForCompletion: 1
_choices: []
_dialogueType: 0

18
UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step1/SD-S1-Q1-QL4.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: SD-S1-Q1-QL4
m_EditorClassIdentifier:
_actor: {fileID: 0}
_dialogueLines: []
_actor: {fileID: 11400000, guid: 57f499d332bed904d82f12c003ecc859, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: Questline Dialogue
m_TableEntryReference:
m_KeyId: 0
m_Key: L1-SD-S1-Q1-QL4
m_FallbackState: 0
m_WaitForCompletion: 1
- m_TableReference:
m_TableCollectionName: Questline Dialogue
m_TableEntryReference:
m_KeyId: 0
m_Key: L2-SD-S1-Q1-QL4
m_FallbackState: 0
m_WaitForCompletion: 1
_choices: []
_dialogueType: 0

18
UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step2/SD-S2-Q1-QL4.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: SD-S2-Q1-QL4
m_EditorClassIdentifier:
_actor: {fileID: 0}
_dialogueLines: []
_actor: {fileID: 11400000, guid: 57f499d332bed904d82f12c003ecc859, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: Questline Dialogue
m_TableEntryReference:
m_KeyId: 0
m_Key: L1-SD-S2-Q1-QL4
m_FallbackState: 0
m_WaitForCompletion: 1
- m_TableReference:
m_TableCollectionName: Questline Dialogue
m_TableEntryReference:
m_KeyId: 0
m_Key: L2-SD-S2-Q1-QL4
m_FallbackState: 0
m_WaitForCompletion: 1
_choices: []
_dialogueType: 0

6
UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step3/CD-S3-Q1-QL4.asset


m_KeyId: 0
m_Key: L1-CD-S3-Q1-QL4
m_FallbackState: 0
m_WaitForCompletion: 1
m_KeyId: 47081577766576128
m_Key:
m_KeyId: 0
m_Key: L2-CD-S3-Q1-QL4
m_WaitForCompletion: 1
_choices: []
_dialogueType: 1

1
UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step3/ID-S3-Q1-QL4.asset


m_KeyId: 0
m_Key: L1-ID-S3-Q1-QL4
m_FallbackState: 0
m_WaitForCompletion: 1
_choices: []
_dialogueType: 2

14
UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step3/SD-S3-Q1-QL4.asset


m_KeyId: 0
m_Key: L1-SD-S3-Q1-QL4
m_FallbackState: 0
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
_nextDialogue: {fileID: 0}
_actionType: 1
m_WaitForCompletion: 1
_nextDialogue: {fileID: 11400000, guid: 3f5d67fc13b226040865b8abdd8c2b7d, type: 2}
_choiceClickedEvent: {fileID: 0}
_playDialogueEvent: {fileID: 11400000, guid: 5cfe626f5482b914a9e46ebbe35ea1a8,
type: 2}
- _response:
m_TableReference:
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3

m_FallbackState: 0
_nextDialogue: {fileID: 11400000, guid: d69361c4a016fde478566ac520ab817e, type: 2}
_actionType: 0
m_WaitForCompletion: 1
_nextDialogue: {fileID: 0}
_choiceClickedEvent: {fileID: 0}
_playDialogueEvent: {fileID: 0}
_dialogueType: 0

11
UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step5/CD-S5-Q1-QL4.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: CD-S5-Q1-QL4
m_EditorClassIdentifier:
_actor: {fileID: 0}
_dialogueLines: []
_actor: {fileID: 11400000, guid: 57f499d332bed904d82f12c003ecc859, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: Questline Dialogue
m_TableEntryReference:
m_KeyId: 0
m_Key: L1-CD-S5-Q1-QL4
m_FallbackState: 0
m_WaitForCompletion: 1
_choices: []
_dialogueType: 0

11
UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step5/ID-S5-Q1-QL4.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: ID-S5-Q1-QL4
m_EditorClassIdentifier:
_actor: {fileID: 0}
_dialogueLines: []
_actor: {fileID: 11400000, guid: 57f499d332bed904d82f12c003ecc859, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: Questline Dialogue
m_TableEntryReference:
m_KeyId: 0
m_Key: L1-ID-S5-Q1-QL4
m_FallbackState: 0
m_WaitForCompletion: 1
_choices: []
_dialogueType: 0

9
UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step5/SD-S5-Q1-QL4.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: SD-S5-Q1-QL4
m_EditorClassIdentifier:
_actor: {fileID: 0}
_actor: {fileID: 11400000, guid: 57f499d332bed904d82f12c003ecc859, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: Questline Dialogue

m_FallbackState: 0
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
_nextDialogue: {fileID: 11400000, guid: 25fead0ff09014a46bdecf0a9f94333d, type: 2}
_actionType: 1
m_WaitForCompletion: 1
_nextDialogue: {fileID: 0}
_actionType: 0
- _response:
m_TableReference:
m_TableCollectionName: GUID:f81a49615d56c1a4fbbd14b4569b06f3

m_FallbackState: 0
m_WaitForCompletion: 1
_nextDialogue: {fileID: 11400000, guid: 60a888c46608ccd4493d635342f433ea, type: 2}
_actionType: 0
_dialogueType: 0

7
UOP1_Project/Assets/ScriptableObjects/Quests/Questline4/Quest1/Step6/SD-S6-Q1-QL4.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: SD-S6-Q1-QL4
m_EditorClassIdentifier:
_actor: {fileID: 0}
_actor: {fileID: 11400000, guid: 57f499d332bed904d82f12c003ecc859, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: Questline Dialogue

m_FallbackState: 0
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
m_WaitForCompletion: 1
_actionType: 0
_choiceClickedEvent: {fileID: 0}
_playDialogueEvent: {fileID: 0}
_dialogueType: 0

11
UOP1_Project/Assets/ScriptableObjects/Quests/Questline5/Quest1/Step1/SD-S1-Q1-QL5.asset


m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: SD-S1-Q1-QL5
m_EditorClassIdentifier:
_actor: {fileID: 0}
_dialogueLines: []
_actor: {fileID: 11400000, guid: 2f14ee79b2fa2574480372fff57ec101, type: 2}
_dialogueLines:
- m_TableReference:
m_TableCollectionName: Questline Dialogue
m_TableEntryReference:
m_KeyId: 0
m_Key: L1-SD-S1-Q1-QL5
m_FallbackState: 0
m_WaitForCompletion: 1
_choices: []
_dialogueType: 0

5
UOP1_Project/Assets/ScriptableObjects/Quests/Questline5/Quest1/Step2/SD-S2-Q1-QL5.asset


m_KeyId: 0
m_Key: L1-SD-S2-Q1-QL5
m_FallbackState: 0
m_WaitForCompletion: 1
_choices:
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
_nextDialogue: {fileID: 11400000, guid: f9492c5c50746b44c8b346cd1c163918, type: 2}
m_WaitForCompletion: 1
_nextDialogue: {fileID: 0}
_actionType: 0
- _response:
m_TableReference:

m_Key:
m_FallbackState: 0
m_WaitForCompletion: 1
_nextDialogue: {fileID: 11400000, guid: 10ff316e27f9ee446b1c9785c6a4ee93, type: 2}
_actionType: 0
_dialogueType: 0

33
UOP1_Project/Assets/Scripts/Dialogues/DialogueDataSO.cs


[SerializeField] private List<LocalizedString> _dialogueLines = default;
[SerializeField] private List<Choice> _choices = default;
[SerializeField] private DialogueType _dialogueType = default;
public ActorSO Actor => _actor;
public List<LocalizedString> DialogueLines => _dialogueLines;
public List<Choice> Choices => _choices;

public void SetActor(ActorSO newActor)
{
_actor = newActor;
}
public DialogueDataSO()
{
}
public DialogueDataSO(DialogueDataSO dialogue)
{
_actor = dialogue.Actor;
_dialogueLines = new List<LocalizedString>(dialogue.DialogueLines);
_choices = new List<Choice>();
for (int i=0; i<dialogue.Choices.Count; i++)
{
_choices.Add(new Choice(dialogue.Choices[i]));
}
_dialogueType = dialogue.DialogueType;
}
#if UNITY_EDITOR

public void SetNextDialogue(DialogueDataSO dialogue)
{
_nextDialogue = dialogue;
}
public Choice()
{
}
public Choice(Choice choice)
{
_response = choice.Response;
_nextDialogue = choice.NextDialogue;
_actionType = ActionType;
}
}

57
UOP1_Project/Assets/Scripts/Quests/Editor/QuestEditorWindow.cs


}
public class QuestEditorWindow : EditorWindow
{
private StepSO _currentSeletedStep=default;
private StepSO _currentSelectedStep=default;
private QuestSO _currentSeletedQuest=default;
private QuestlineSO _currentSelectedQuestLine=default;
private int _idQuestlineSelected = default;

allStepsListView.onSelectionChange += (stepEnumerable) =>
{
_idStepSelected = allStepsListView.selectedIndex;
_currentSeletedStep = GetDataFromListViewItem<StepSO>(stepEnumerable);
DisplayAllProperties(_currentSeletedStep, "step-info-scroll");
_currentSelectedStep = GetDataFromListViewItem<StepSO>(stepEnumerable);
DisplayAllProperties(_currentSelectedStep, "step-info-scroll");
FindAllDialogueInStep(_currentSeletedStep, out DialogueDataSO[] dialogueDataSOs);
FindAllDialogueInStep(_currentSelectedStep, out DialogueDataSO[] dialogueDataSOs);
if (dialogueDataSOs != null)
{

{
DialogueDataSO dialogueData = GetDataFromListViewItem<DialogueDataSO>(dialogueEnumerable);
DialogueDataSO dialogueData = GetDataFromListViewItem<DialogueDataSO>(dialogueEnumerable);
DisplayAllProperties(dialogueData, "dialogue-info-scroll");
};
}

}
};
}
private void OnDisable()
{
AssetDatabase.SaveAssets();
}
private T GetDataFromListViewItem<T>(IEnumerable<object> enumberable) where T : ScriptableObject
{
T data = default;

private void SetAddDialogueButtonsForStep(out VisualElement ButtonsPanel)
{
ButtonsPanel = new VisualElement();
if (_currentSeletedStep != null)
if (_currentSelectedStep != null)
if (_currentSeletedStep.DialogueBeforeStep == null)
if (_currentSelectedStep.DialogueBeforeStep == null)
{
Button AddDialogueBeforeStepButton = new Button();
AddDialogueBeforeStepButton.text = "Add Dialogue Before Step";

if (_currentSeletedStep.CompleteDialogue == null)
if (_currentSelectedStep.CompleteDialogue == null)
{
Button AddCompletionDialogueButton = new Button();
AddCompletionDialogueButton.text = "Add Completion Dialogue";

}
if (_currentSeletedStep.IncompleteDialogue == null)
if (_currentSelectedStep.IncompleteDialogue == null)
{
Button AddIncompletionDialogueButton = new Button();

int questId = 0;
questId = _currentSeletedQuest.IdQuest;
int stepId = 0;
stepId = _currentSeletedQuest.Steps.FindIndex(o=>o==_currentSeletedStep)+1;
stepId = _currentSeletedQuest.Steps.FindIndex(o=>o==_currentSelectedStep)+1;
_currentSeletedStep.DialogueBeforeStep=asset;
_currentSelectedStep.DialogueBeforeStep=asset;
asset.DialogueType = DialogueType.startDialogue;
asset.CreateLine();
rootVisualElement.Q<VisualElement>("steps-list").Q<ListView>().SetSelection(_idStepSelected);

int questId = 0;
questId = _currentSeletedQuest.IdQuest;
int stepId = 0;
stepId = _currentSeletedQuest.Steps.FindIndex(o => o == _currentSeletedStep)+1;
stepId = _currentSeletedQuest.Steps.FindIndex(o => o == _currentSelectedStep)+1;
_currentSeletedStep.CompleteDialogue = asset;
_currentSelectedStep.CompleteDialogue = asset;
asset.DialogueType = DialogueType.winDialogue;
asset.CreateLine();
rootVisualElement.Q<VisualElement>("steps-list").Q<ListView>().SetSelection(_idStepSelected);

int questId = 0;
questId = _currentSeletedQuest.IdQuest;
int stepId = 0;
stepId = _currentSeletedQuest.Steps.FindIndex(o => o == _currentSeletedStep)+1;
stepId = _currentSeletedQuest.Steps.FindIndex(o => o == _currentSelectedStep)+1;
_currentSeletedStep.IncompleteDialogue = asset;
_currentSelectedStep.IncompleteDialogue = asset;
rootVisualElement.Q<VisualElement>("steps-list").Q<ListView>().SetSelection(_idStepSelected);
}

AssetDatabase.CreateFolder("Assets/ScriptableObjects/Quests", "Questline" + id);
AssetDatabase.CreateAsset(asset, "Assets/ScriptableObjects/Quests/Questline" + id + "/QL" + id + ".asset");
AssetDatabase.SaveAssets();
//refresh
LoadAllQuestsData();
}

void RemoveStep()
{
if (_currentSeletedStep == null)
if (_currentSelectedStep == null)
if (_currentSeletedQuest.Steps.Exists(o => o == _currentSeletedStep))
_currentSeletedQuest.Steps.Remove(_currentSeletedQuest.Steps.Find(o => o == _currentSeletedStep));
if (_currentSeletedQuest.Steps.Exists(o => o == _currentSelectedStep))
_currentSeletedQuest.Steps.Remove(_currentSeletedQuest.Steps.Find(o => o == _currentSelectedStep));
if (_currentSeletedStep.DialogueBeforeStep!=null)
if (_currentSelectedStep.DialogueBeforeStep!=null)
RemoveDialogue(_currentSeletedStep.DialogueBeforeStep);
RemoveDialogue(_currentSelectedStep.DialogueBeforeStep);
if (_currentSeletedStep.CompleteDialogue != null)
if (_currentSelectedStep.CompleteDialogue != null)
RemoveDialogue(_currentSeletedStep.CompleteDialogue);
RemoveDialogue(_currentSelectedStep.CompleteDialogue);
if (_currentSeletedStep.IncompleteDialogue != null)
if (_currentSelectedStep.IncompleteDialogue != null)
RemoveDialogue(_currentSeletedStep.IncompleteDialogue);
RemoveDialogue(_currentSelectedStep.IncompleteDialogue);
AssetDatabase.DeleteAsset(_currentSeletedStep.GetPath());
AssetDatabase.DeleteAsset(_currentSelectedStep.GetPath());
_idStepSelected = -1;
//refresh List
rootVisualElement.Q<VisualElement>("quests-list").Q<ListView>().SetSelection(_idQuestSelected);

4
UOP1_Project/Assets/Scripts/Quests/ScriptableObjects/StepSO.cs


_isDone = true;
}
dialogueData = DialogueBeforeStep;
dialogueData = new DialogueDataSO(DialogueBeforeStep);
if (DialogueBeforeStep.Choices != null)
{
if (CompleteDialogue != null)

4
UOP1_Project/Packages/manifest.json


"com.unity.burst": "1.4.8",
"com.unity.cinemachine": "2.7.4",
"com.unity.ide.rider": "2.0.7",
"com.unity.ide.visualstudio": "2.0.7",
"com.unity.ide.visualstudio": "2.0.8",
"com.unity.ide.vscode": "1.2.3",
"com.unity.inputsystem": "1.0.2",
"com.unity.learn.iet-framework": "2.0.0-pre.4",

"com.unity.recorder": "2.5.5",
"com.unity.render-pipelines.universal": "10.4.0",
"com.unity.render-pipelines.universal": "10.5.0",
"com.unity.scriptablebuildpipeline": "1.16.1",
"com.unity.settings-manager": "1.0.3",
"com.unity.textmeshpro": "3.0.6",

18
UOP1_Project/Packages/packages-lock.json


"url": "https://packages.unity.com"
},
"com.unity.ide.visualstudio": {
"version": "2.0.7",
"version": "2.0.8",
"depth": 0,
"source": "registry",
"dependencies": {

"url": "https://packages.unity.com"
},
"com.unity.render-pipelines.core": {
"version": "10.4.0",
"version": "10.5.0",
"depth": 1,
"source": "registry",
"dependencies": {

},
"com.unity.render-pipelines.universal": {
"version": "10.4.0",
"version": "10.5.0",
"com.unity.render-pipelines.core": "10.4.0",
"com.unity.shadergraph": "10.4.0"
"com.unity.render-pipelines.core": "10.5.0",
"com.unity.shadergraph": "10.5.0"
},
"url": "https://packages.unity.com"
},

"url": "https://packages.unity.com"
},
"com.unity.searcher": {
"version": "4.3.1",
"version": "4.3.2",
"depth": 2,
"source": "registry",
"dependencies": {},

"url": "https://packages.unity.com"
},
"com.unity.shadergraph": {
"version": "10.4.0",
"version": "10.5.0",
"com.unity.render-pipelines.core": "10.4.0",
"com.unity.searcher": "4.3.1"
"com.unity.render-pipelines.core": "10.5.0",
"com.unity.searcher": "4.3.2"
},
"url": "https://packages.unity.com"
},

4
UOP1_Project/ProjectSettings/ProjectVersion.txt


m_EditorVersion: 2020.3.7f1
m_EditorVersionWithRevision: 2020.3.7f1 (dd97f2c94397)
m_EditorVersion: 2020.3.12f1
m_EditorVersionWithRevision: 2020.3.12f1 (b3b2c6512326)
正在加载...
取消
保存