浏览代码

Add a quest, and test; WIP

/main
uChema 4 年前
当前提交
748ff00f
共有 76 个文件被更改,包括 802 次插入80 次删除
  1. 8
      UOP1_Project/Assets/Inventory/ScriptableObjects/PlayerInventory.asset
  2. 28
      UOP1_Project/Assets/Localization Files/Asset Tables/Dialogue System/Dialogues/Dialogue Shared Data.asset
  3. 24
      UOP1_Project/Assets/Localization Files/Asset Tables/Dialogue System/Dialogues/Dialogue_en.asset
  4. 24
      UOP1_Project/Assets/Localization Files/Asset Tables/Dialogue System/Dialogues/Dialogue_fr.asset
  5. 6
      UOP1_Project/Assets/Prefabs/Characters/BardHare.prefab
  6. 11
      UOP1_Project/Assets/Scenes/Examples/InteractionExample.unity
  7. 23
      UOP1_Project/Assets/Scenes/Gameplay.unity
  8. 2
      UOP1_Project/Assets/ScriptableObjects/Dialogue/Line NO.asset
  9. 2
      UOP1_Project/Assets/ScriptableObjects/Dialogue/Line Yes.asset
  10. 2
      UOP1_Project/Assets/ScriptableObjects/Events/Dialogue/EndDialogueEvent.asset.meta
  11. 3
      UOP1_Project/Assets/ScriptableObjects/Events/Quests/EndTaskEvent.asset
  12. 2
      UOP1_Project/Assets/ScriptableObjects/Events/Quests/EndTaskEvent.asset.meta
  13. 3
      UOP1_Project/Assets/Scripts/CameraManager.cs
  14. 2
      UOP1_Project/Assets/Scripts/Cutscenes/CutsceneManager.cs
  15. 24
      UOP1_Project/Assets/Scripts/Dialogues/DialogueManager.cs
  16. 1
      UOP1_Project/Assets/Scripts/Interaction/InteractionManager.cs
  17. 43
      UOP1_Project/Assets/Scripts/Quests/QuestManager.cs
  18. 1
      UOP1_Project/Assets/Scripts/Quests/ScriptableObjects/QuestSO.cs
  19. 2
      UOP1_Project/Assets/Scripts/Quests/ScriptableObjects/TaskSO.cs
  20. 103
      UOP1_Project/Assets/Scripts/Quests/TaskManager.cs
  21. 2
      UOP1_Project/Assets/Scripts/UI/UIManager.cs
  22. 20
      UOP1_Project/Assets/ScriptableObjects/Dialogue/Line Thank you.asset
  23. 8
      UOP1_Project/Assets/ScriptableObjects/Dialogue/Line Thank you.asset.meta
  24. 20
      UOP1_Project/Assets/ScriptableObjects/Dialogue/Line You are welcome.asset
  25. 8
      UOP1_Project/Assets/ScriptableObjects/Dialogue/Line You are welcome.asset.meta
  26. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1.meta
  27. 19
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Quest1.asset
  28. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Quest1.asset.meta
  29. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1.meta
  30. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue.meta
  31. 20
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Line1.asset
  32. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Line1.asset.meta
  33. 20
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Line2.asset
  34. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Line2.asset.meta
  35. 20
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Task1_StartDialogue.asset
  36. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Task1_StartDialogue.asset.meta
  37. 22
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Task1.asset
  38. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Task1.asset.meta
  39. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2.meta
  40. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue.meta
  41. 20
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line3.asset
  42. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line3.asset.meta
  43. 20
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line4.asset
  44. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line4.asset.meta
  45. 20
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line5.asset
  46. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line5.asset.meta
  47. 19
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_LoseDialogue.asset
  48. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_LoseDialogue.asset.meta
  49. 23
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_StartDialogue.asset
  50. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_StartDialogue.asset.meta
  51. 19
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_WinDialogue.asset
  52. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_WinDialogue.asset.meta
  53. 22
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Task2.asset
  54. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Task2.asset.meta
  55. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3.meta
  56. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue.meta
  57. 20
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Line6.asset
  58. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Line6.asset.meta
  59. 19
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Secondary Dialogue.asset
  60. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Secondary Dialogue.asset.meta
  61. 21
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Task3_StartDialogue.asset
  62. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Task3_StartDialogue.asset.meta
  63. 22
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Task3.asset
  64. 8
      UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Task3.asset.meta
  65. 0
      /UOP1_Project/Assets/ScriptableObjects/Dialogue/Line NO.asset.meta
  66. 0
      /UOP1_Project/Assets/ScriptableObjects/Dialogue/Line Yes.asset.meta
  67. 0
      /UOP1_Project/Assets/ScriptableObjects/Dialogue/Line NO.asset
  68. 0
      /UOP1_Project/Assets/ScriptableObjects/Dialogue/Line Yes.asset

8
UOP1_Project/Assets/Inventory/ScriptableObjects/PlayerInventory.asset


m_Script: {fileID: 11500000, guid: b39a296438081ff4c99abec393d12d54, type: 3}
m_Name: PlayerInventory
m_EditorClassIdentifier:
_items:
- _item: {fileID: 11400000, guid: 981618c3eb6d24746a53ce7dbe6559a6, type: 2}
Amount: 1
- _item: {fileID: 11400000, guid: 7b870b4146bd349bb856ccc38dd7e528, type: 2}
Amount: 1
- _item: {fileID: 11400000, guid: af80f3802049947e7993bd6c196aea43, type: 2}
Amount: 1
_items: []

28
UOP1_Project/Assets/Localization Files/Asset Tables/Dialogue System/Dialogues/Dialogue Shared Data.asset


m_Key: LineTestNo
m_Metadata:
m_Items: []
- m_Id: 21415122639380480
m_Key: 3rdLine
m_Metadata:
m_Items: []
- m_Id: 21415473023148032
m_Key: New Entry
m_Metadata:
m_Items: []
- m_Id: 21415600320274432
m_Key: 5thLine
m_Metadata:
m_Items: []
- m_Id: 21416223719677952
m_Key: 4thLine
m_Metadata:
m_Items: []
- m_Id: 21416467576512512
m_Key: 6thLine
m_Metadata:
m_Items: []
- m_Id: 21418818861391872
m_Key: 7thLine
m_Metadata:
m_Items: []
- m_Id: 21419501962518528
m_Key: Welcome
m_Metadata:
m_Items: []
m_Metadata:
m_Items: []
m_KeyGenerator:

24
UOP1_Project/Assets/Localization Files/Asset Tables/Dialogue System/Dialogues/Dialogue_en.asset


m_Localized: Ok ! Go there when you feel like it !
m_Metadata:
m_Items: []
- m_Id: 21415122639380480
m_Localized: Can you bring me an apple please?
m_Metadata:
m_Items: []
- m_Id: 21415600320274432
m_Localized: Thank you !
m_Metadata:
m_Items: []
- m_Id: 21416223719677952
m_Localized: Did you find the appels?
m_Metadata:
m_Items: []
- m_Id: 21416467576512512
m_Localized: 'No problem, come back when you find some. '
m_Metadata:
m_Items: []
- m_Id: 21418818861391872
m_Localized: Here's a new recipe for you !
m_Metadata:
m_Items: []
- m_Id: 21419501962518528
m_Localized: You are welcome !
m_Metadata:
m_Items: []
references:
version: 1

24
UOP1_Project/Assets/Localization Files/Asset Tables/Dialogue System/Dialogues/Dialogue_fr.asset


m_Localized: 'Ok ! Vas y quand tu veux ! '
m_Metadata:
m_Items: []
- m_Id: 21415122639380480
m_Localized: Est ce que tu peux m'apporter une pomme?
m_Metadata:
m_Items: []
- m_Id: 21415600320274432
m_Localized: Merci !
m_Metadata:
m_Items: []
- m_Id: 21416223719677952
m_Localized: "Est ce que tu as trouv\xE9 les pommes? "
m_Metadata:
m_Items: []
- m_Id: 21416467576512512
m_Localized: "Pas de probl\xE8me, reviens quand tu les auras trouv\xE9."
m_Metadata:
m_Items: []
- m_Id: 21418818861391872
m_Localized: Voila une recette pour toi !
m_Metadata:
m_Items: []
- m_Id: 21419501962518528
m_Localized: De rien !
m_Metadata:
m_Items: []
references:
version: 1

6
UOP1_Project/Assets/Prefabs/Characters/BardHare.prefab


m_Script: {fileID: 11500000, guid: b803c85ebca51c4499674adbe5ea4a21, type: 3}
m_Name:
m_EditorClassIdentifier:
_actor: {fileID: 0}
_defaultDialogue: {fileID: 0}
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_defaultDialogue: {fileID: 11400000, guid: f7ead55387bac6d4a9ba9bf10c5c3ee5, type: 2}
_winDialogueEvent: {fileID: 11400000, guid: dc2da1754c28ab9499cb6c7d72465e69, type: 2}
_loseDialogueEvent: {fileID: 11400000, guid: fcc99784052e5cc469b8c22c0674b051, type: 2}
_checkTaskValidityEvent: {fileID: 11400000, guid: 71375bc63dd705044a6b0fc6ee5f2acd,
type: 2}
_startDialogueEvent: {fileID: 11400000, guid: 5cfe626f5482b914a9e46ebbe35ea1a8,

11
UOP1_Project/Assets/Scenes/Examples/InteractionExample.unity


m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 112000000, guid: f3658c79011056a45be1a9f331e27541,
type: 2}
m_UseShadowmask: 0
m_UseShadowmask: 1
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2

_openUIDialogueEvent: {fileID: 0}
_showChoicesUIEvent: {fileID: 0}
_endDialogue: {fileID: 0}
_closeDialogueUIEvent: {fileID: 0}
--- !u!4 &419940103
Transform:
m_ObjectHideFlags: 0

m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 564729674, guid: 7f3c311f1ca46334ab26b1adfc5be02f, type: 3}
propertyPath: _actor
propertyPath: _endTaskEvent
objectReference: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13,
objectReference: {fileID: 11400000, guid: fa6fff5267e6a0340aa7b0222f9c77c7,
propertyPath: _defaultDialogue
propertyPath: _endDialogueEvent
objectReference: {fileID: 11400000, guid: f7ead55387bac6d4a9ba9bf10c5c3ee5,
objectReference: {fileID: 11400000, guid: b2a95390cb0fdfd4ebbd4fac6e1ca2bc,
type: 2}
- target: {fileID: 2723178623857253410, guid: 7f3c311f1ca46334ab26b1adfc5be02f,
type: 3}

23
UOP1_Project/Assets/Scenes/Gameplay.unity


m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 8957403575277752756, guid: 021ad8df909ac4147aa545c01f5ad8db,
type: 3}
propertyPath: _quests.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8957403575277752756, guid: 021ad8df909ac4147aa545c01f5ad8db,
type: 3}
propertyPath: _quests.Array.data[0]
value:
objectReference: {fileID: 11400000, guid: 4235b642a3ad91341a7cb42c6851293f,
type: 2}
- target: {fileID: 8957403575277752756, guid: 021ad8df909ac4147aa545c01f5ad8db,
type: 3}
propertyPath: _endTaskEvent
value:
objectReference: {fileID: 11400000, guid: fa6fff5267e6a0340aa7b0222f9c77c7,
type: 2}
- target: {fileID: 8957403575277752757, guid: 021ad8df909ac4147aa545c01f5ad8db,
type: 3}
propertyPath: m_LocalPosition.x

propertyPath: _closeDialogueUIEvent
value:
objectReference: {fileID: 11400000, guid: 53a7f1f01ef364704b1d45d01f2421ae,
type: 2}
- target: {fileID: 8980297398607076176, guid: ccad748453924ff4092fe3e5b978d8e5,
type: 3}
propertyPath: _endDialogue
value:
objectReference: {fileID: 11400000, guid: b2a95390cb0fdfd4ebbd4fac6e1ca2bc,
type: 2}
- target: {fileID: 8980297398607076177, guid: ccad748453924ff4092fe3e5b978d8e5,
type: 3}

2
UOP1_Project/Assets/ScriptableObjects/Dialogue/Line NO.asset


m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e49a73eb0802e10429213abfb59e46e1, type: 3}
m_Name: Choice No
m_Name: Line NO
m_EditorClassIdentifier:
_sentence:
m_TableReference:

2
UOP1_Project/Assets/ScriptableObjects/Dialogue/Line Yes.asset


m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e49a73eb0802e10429213abfb59e46e1, type: 3}
m_Name: Choice Yes
m_Name: Line Yes
m_EditorClassIdentifier:
_sentence:
m_TableReference:

2
UOP1_Project/Assets/ScriptableObjects/Events/Dialogue/EndDialogueEvent.asset.meta


fileFormatVersion: 2
guid: 4f783502cf29fc442948914c150c1e05
guid: b2a95390cb0fdfd4ebbd4fac6e1ca2bc
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0

3
UOP1_Project/Assets/ScriptableObjects/Events/Quests/EndTaskEvent.asset


m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7fafac715ff920c4383fed91a38a351e, type: 3}
m_Script: {fileID: 11500000, guid: 4d2ce8a9511333c42a9e907bbdb3b32f, type: 3}
description:

2
UOP1_Project/Assets/ScriptableObjects/Events/Quests/EndTaskEvent.asset.meta


fileFormatVersion: 2
guid: 0803969a2e523324b86ca9a0c4ac12f2
guid: fa6fff5267e6a0340aa7b0222f9c77c7
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0

3
UOP1_Project/Assets/Scripts/CameraManager.cs


private void OnCameraMove(Vector2 cameraMovement, bool isDeviceMouse)
{
Debug.Log(cameraMovement);
if (_cameraMovementLock)
return;

2
UOP1_Project/Assets/Scripts/Cutscenes/CutsceneManager.cs


_activePlayableDirector.stopped -= HandleDirectorStopped;
_inputReader.EnableGameplayInput();
_dialogueManager.DialogueEnded();
_dialogueManager.DialogueEndedAndCloseDialogueUI();
}
private void HandleDirectorStopped(PlayableDirector director) => CutsceneEnded();

24
UOP1_Project/Assets/Scripts/Dialogues/DialogueManager.cs


/// <param name="dialogueLine"></param>
public void DisplayDialogueLine(DialogueLineSO dialogueLine, ActorSO actor)
{
Debug.Log("DisplayDialogueLine");
if(_openUIDialogueEvent!=null)
{
_openUIDialogueEvent.RaiseEvent(dialogueLine, actor);

}
else
{
DialogueEnded();
DialogueEndedAndCloseDialogueUI();
}
}
}

{
_makeDialogueChoiceEvent.OnEventRaised -= MakeDialogueChoice;
}
DisplayDialogueData(choice.NextDialogue);
if (choice.NextDialogue != null)
DisplayDialogueData(choice.NextDialogue);
else
DialogueEnded();
public void DialogueEnded()
void DialogueEnded()
if(_endDialogue!=null)
Debug.Log("DialogueEnded");
if (_endDialogue!=null)
}
public void DialogueEndedAndCloseDialogueUI()
{
Debug.Log("DialogueEnded");
if (_endDialogue != null)
_endDialogue.RaiseEvent();
}
}

1
UOP1_Project/Assets/Scripts/Interaction/InteractionManager.cs


//raise an event with an actor as parameter
_currentInteractableObject.GetComponent<TaskManager>().InteractWithCharacter();
//_startTalking.RaiseEvent(currentActor);
Debug.Log("talk event raised");
//Change the action map
_inputReader.EnableDialogueInput();
//set current interaction for state machine

43
UOP1_Project/Assets/Scripts/Quests/QuestManager.cs


[Header("Linstening to channels")]
[SerializeField] private VoidEventChannelSO _checkTaskValidityEvent = default;
[SerializeField] private VoidEventChannelSO _endTaskEvent = default;
[SerializeField] private TaskChannelSO _endTaskEvent = default;
[Header("Broadcasting on channels")]
[SerializeField] private TaskChannelSO _startTaskEvent = default;

private int _currentQuestIndex =0;
private int _currentTaskIndex =0;
private void Start()
{
if( _checkTaskValidityEvent!=null)
{
Debug.Log("Start");
if ( _checkTaskValidityEvent!=null)
if (_endTaskEvent != null)
{
_endTaskEvent.OnEventRaised += EndTask;
}
{//Add code for saved information
{//Add code for saved information
Debug.Log("Start Game");
if(_currentQuestIndex >0)
if (_currentQuestIndex >=0)
StartQuest();
}

Debug.Log("Start Quest");
if (_quests != null)
if ( _quests.Count > _currentQuestIndex)
{

if (_currentTaskIndex > 0)
if (_currentTaskIndex >= 0)
StartTask();
}

{
if(_currentQuest.Tasks!=null)
Debug.Log("Start task");
if (_currentQuest.Tasks!=null)
if (_currentQuest.Tasks.Count > _currentTaskIndex)
{
_currentTask = _currentQuest.Tasks[_currentTaskIndex];

{
_winDialogueEvent.OnEventRaised();
}
EndTask();
}
else
{

{
_winDialogueEvent.OnEventRaised();
}
}
EndTask();
}
else
{
//trigger lose dialogue

break;
case taskType.rewardItem:
_rewardItemEvent.RaiseEvent(_currentTask.Item);
//no dialogue is needed after Reward Item
break;
//no dialogue is needed after Reward Item
EndTask();
break;
//dialogue has already been played
//dialogue has already been played
EndTask();
break;

void EndTask()
{
_currentTask.FinishTask();
_currentTask = null;
if (_quests != null)
if (_quests.Count > _currentQuestIndex)

Debug.Log(_quests[_currentQuestIndex].Tasks[_currentTaskIndex].IsDone);
if (_endTaskEvent != null)
_endTaskEvent.RaiseEvent(_quests[_currentQuestIndex].Tasks[_currentTaskIndex]);
if(_quests[_currentQuestIndex].Tasks.Count < _currentTaskIndex+1)
if(_quests[_currentQuestIndex].Tasks.Count > _currentTaskIndex +1)
{
_currentTaskIndex++;
StartTask();

1
UOP1_Project/Assets/Scripts/Quests/ScriptableObjects/QuestSO.cs


[Tooltip("The collection of Tasks composing the Quest")]
[SerializeField]
private List<TaskSO> _tasks = new List<TaskSO>();
[SerializeField]
bool _isDone = false;
public List<TaskSO> Tasks => _tasks;
public bool IsDone => _isDone;

2
UOP1_Project/Assets/Scripts/Quests/ScriptableObjects/TaskSO.cs


[Tooltip("The type of the task")]
[SerializeField]
private taskType _type = default;
[SerializeField]
bool _isDone=false;
public DialogueDataSO DialogueBeforeTask => _dialogueBeforeTask;
public DialogueDataSO WinDialogue => _winDialogue;

103
UOP1_Project/Assets/Scripts/Quests/TaskManager.cs


[SerializeField] private TaskChannelSO _startTaskEvent = default;
[SerializeField] private VoidEventChannelSO _endDialogueEvent = default;
[SerializeField] private DialogueActorChannelSo _interactionEvent = default;
[SerializeField] private VoidEventChannelSO _winDialogueEvent = default;
[SerializeField] private VoidEventChannelSO _loseDialogueEvent = default;
[SerializeField] private TaskChannelSO _endTaskEvent = default;
[Header("Broadcasting on channels")]
[SerializeField] private VoidEventChannelSO _checkTaskValidityEvent = default;

{ _startTaskEvent.OnEventRaised += CheckTaskInvolvment; }
if (_interactionEvent != null)
{ _interactionEvent.OnEventRaised += InteractWithCharacter; }
if (_winDialogueEvent != null)
{ _winDialogueEvent.OnEventRaised += PlayWinDialogue; }
if (_loseDialogueEvent != null)
{ _loseDialogueEvent.OnEventRaised += PlayLoseDialogue; }
if (_endTaskEvent != null)
{ _endTaskEvent.OnEventRaised += EndTask; }
}
//play default dialogue if no task

}
void CheckTaskInvolvment(TaskSO task)
{
Debug.Log("check involvment");
if(_actor == task.Actor)
{
RegisterTask(task);

}
void StartTask() {
if(_currentTask!=null)
if(_currentTask!=null)
if (_currentTask.DialogueBeforeTask != null)
{
_currentDialogue = _currentTask.DialogueBeforeTask;

{
if (_startDialogueEvent != null)
{
Debug.Log("Start Dialogue ");
void PlayLoseDialogue() {
if (_currentTask != null)
if (_currentTask.LoseDialogue != null)
{
Debug.Log("Play lose Dialogue ");
_currentDialogue = _currentTask.LoseDialogue;
StartDialogue();
}
}
void PlayWinDialogue()
{
Debug.Log("Play Win Dialogue" + _currentTask.WinDialogue);
if (_currentTask != null)
if (_currentTask.WinDialogue != null)
{
_currentDialogue = _currentTask.WinDialogue;
StartDialogue();
}
}
switch (_currentDialogue.DialogueType)
{
case dialogueType.startDialogue:
//Check the validity of the task
CheckTaskValidity();
break;
case dialogueType.winDialogue:
//After playing the win dialogue close Dialogue and end Task
EndTask();
break;
case dialogueType.loseDialogue:
//closeDialogue
//replay start Dialogue if the lose Dialogue ended
if(_currentTask.DialogueBeforeTask!=null)
{
_currentDialogue = _currentTask.DialogueBeforeTask;
switch (_currentDialogue.DialogueType)
{
case dialogueType.startDialogue:
//Check the validity of the task
CheckTaskValidity();
break;
case dialogueType.winDialogue:
//After playing the win dialogue close Dialogue and end Task
break;
case dialogueType.loseDialogue:
//closeDialogue
//replay start Dialogue if the lose Dialogue ended
if (_currentTask.DialogueBeforeTask != null)
{
_currentDialogue = _currentTask.DialogueBeforeTask;
}
break;
case dialogueType.defaultDialogue:
//close Dialogue
//nothing happens if it's the default dialogue
break;
default:
break;
}
break;
case dialogueType.defaultDialogue:
//close Dialogue
//nothing happens if it's the default dialogue
break;
default:
break;
}

}
void EndTask()
void EndTask(TaskSO taskToFinish)
Debug.Log("End Task " + taskToFinish.name);
if(taskToFinish==_currentTask)
UnregisterTask();
else
{
StartTask();
}
UnregisterTask();
}
void EndTask()
{
UnregisterTask();
void UnregisterTask()
void UnregisterTask()
{
_currentTask = null;
_hasActifTask = false;

2
UOP1_Project/Assets/Scripts/UI/UIManager.cs


public void OpenUIDialogue(DialogueLineSO dialogueLine, ActorSO actor)
{
Debug.Log("Open UI Dialogue");
Debug.Log("Close UI Dialogue");
dialogueController.gameObject.SetActive(false);
}

20
UOP1_Project/Assets/ScriptableObjects/Dialogue/Line Thank you.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e49a73eb0802e10429213abfb59e46e1, type: 3}
m_Name: Line Thank you
m_EditorClassIdentifier:
_sentence:
m_TableReference:
m_TableCollectionName: GUID:3023456eb4be043f1a0c6ede7f88d892
m_TableEntryReference:
m_KeyId: 21415600320274432
m_Key:

8
UOP1_Project/Assets/ScriptableObjects/Dialogue/Line Thank you.asset.meta


fileFormatVersion: 2
guid: ef6aede833517e541b24b831e031f5e4
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

20
UOP1_Project/Assets/ScriptableObjects/Dialogue/Line You are welcome.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e49a73eb0802e10429213abfb59e46e1, type: 3}
m_Name: Line You are welcome
m_EditorClassIdentifier:
_sentence:
m_TableReference:
m_TableCollectionName: GUID:3023456eb4be043f1a0c6ede7f88d892
m_TableEntryReference:
m_KeyId: 21419501962518528
m_Key:

8
UOP1_Project/Assets/ScriptableObjects/Dialogue/Line You are welcome.asset.meta


fileFormatVersion: 2
guid: 5dd8c314c9025984a95711c1527fe85b
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1.meta


fileFormatVersion: 2
guid: 580741d181c0d454e9695e7aa607cf27
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

19
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Quest1.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 05c700bba7d21604586cb89ec5afdee0, type: 3}
m_Name: Quest1
m_EditorClassIdentifier:
_tasks:
- {fileID: 11400000, guid: 6d97071327172b049a2d7e8d0260cbea, type: 2}
- {fileID: 11400000, guid: f053cd027694c2341b24e7a6637cd30b, type: 2}
- {fileID: 11400000, guid: 9141d636b142e18459e416f602aa7827, type: 2}
_isDone: 0

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Quest1.asset.meta


fileFormatVersion: 2
guid: 4235b642a3ad91341a7cb42c6851293f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1.meta


fileFormatVersion: 2
guid: 81a29d02322fea24ca21ba9c5f5e1cca
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue.meta


fileFormatVersion: 2
guid: 2b6e837fdc788964e944951f74670620
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

20
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Line1.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e49a73eb0802e10429213abfb59e46e1, type: 3}
m_Name: Line1
m_EditorClassIdentifier:
_sentence:
m_TableReference:
m_TableCollectionName: GUID:3023456eb4be043f1a0c6ede7f88d892
m_TableEntryReference:
m_KeyId: 9306103808
m_Key:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Line1.asset.meta


fileFormatVersion: 2
guid: b92d22d14fdfb9d418583bf257f2a5af
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

20
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Line2.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e49a73eb0802e10429213abfb59e46e1, type: 3}
m_Name: Line2
m_EditorClassIdentifier:
_sentence:
m_TableReference:
m_TableCollectionName: GUID:3023456eb4be043f1a0c6ede7f88d892
m_TableEntryReference:
m_KeyId: 21415122639380480
m_Key:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Line2.asset.meta


fileFormatVersion: 2
guid: e3d7e8cdb77a4a342bc4fe8d88f445ae
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

20
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Task1_StartDialogue.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: Task1_StartDialogue
m_EditorClassIdentifier:
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueLines:
- {fileID: 11400000, guid: b92d22d14fdfb9d418583bf257f2a5af, type: 2}
- {fileID: 11400000, guid: e3d7e8cdb77a4a342bc4fe8d88f445ae, type: 2}
_choices: []
_dialogueType: 0

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Dialogue/Task1_StartDialogue.asset.meta


fileFormatVersion: 2
guid: e59770a38e7b1454594ff0ade5cc9347
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

22
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Task1.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3c4c03cb18bdd224b898e0687da8d1ac, type: 3}
m_Name: Task1
m_EditorClassIdentifier:
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueBeforeTask: {fileID: 11400000, guid: e59770a38e7b1454594ff0ade5cc9347,
type: 2}
_winDialogue: {fileID: 0}
_loseDialogue: {fileID: 0}
_item: {fileID: 0}
_type: 0
_isDone: 0

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task1/Task1.asset.meta


fileFormatVersion: 2
guid: 6d97071327172b049a2d7e8d0260cbea
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2.meta


fileFormatVersion: 2
guid: 4e462b27cff6bbe4297b0daaf9245942
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue.meta


fileFormatVersion: 2
guid: 9b7db5fa73b9b1e41a027ef86dfe3f64
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

20
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line3.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e49a73eb0802e10429213abfb59e46e1, type: 3}
m_Name: Line3
m_EditorClassIdentifier:
_sentence:
m_TableReference:
m_TableCollectionName: GUID:3023456eb4be043f1a0c6ede7f88d892
m_TableEntryReference:
m_KeyId: 21416223719677952
m_Key:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line3.asset.meta


fileFormatVersion: 2
guid: 69ad8ecff4631b346abc13127e26d59b
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

20
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line4.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e49a73eb0802e10429213abfb59e46e1, type: 3}
m_Name: Line4
m_EditorClassIdentifier:
_sentence:
m_TableReference:
m_TableCollectionName: GUID:3023456eb4be043f1a0c6ede7f88d892
m_TableEntryReference:
m_KeyId: 21415600320274432
m_Key:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line4.asset.meta


fileFormatVersion: 2
guid: aced5feaa06462343803122b2f23e8cb
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

20
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line5.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e49a73eb0802e10429213abfb59e46e1, type: 3}
m_Name: Line5
m_EditorClassIdentifier:
_sentence:
m_TableReference:
m_TableCollectionName: GUID:3023456eb4be043f1a0c6ede7f88d892
m_TableEntryReference:
m_KeyId: 21416467576512512
m_Key:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Line5.asset.meta


fileFormatVersion: 2
guid: b38e3387aec4d3f43bec30fae078b082
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

19
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_LoseDialogue.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: Task2_LoseDialogue
m_EditorClassIdentifier:
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueLines:
- {fileID: 11400000, guid: b38e3387aec4d3f43bec30fae078b082, type: 2}
_choices: []
_dialogueType: 2

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_LoseDialogue.asset.meta


fileFormatVersion: 2
guid: bd01348075afad54497623d69415d173
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

23
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_StartDialogue.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: Task2_StartDialogue
m_EditorClassIdentifier:
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueLines:
- {fileID: 11400000, guid: 69ad8ecff4631b346abc13127e26d59b, type: 2}
_choices:
- _response: {fileID: 11400000, guid: 41b89c0c93e7af1439d29abc8362b4ec, type: 2}
_nextDialogue: {fileID: 0}
- _response: {fileID: 11400000, guid: 1ce42aa13e24e4f478da0c2a348c3ad9, type: 2}
_nextDialogue: {fileID: 0}
_dialogueType: 0

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_StartDialogue.asset.meta


fileFormatVersion: 2
guid: 51d45f4919bbf75429951b9afeeb0ca6
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

19
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_WinDialogue.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: Task2_WinDialogue
m_EditorClassIdentifier:
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueLines:
- {fileID: 11400000, guid: aced5feaa06462343803122b2f23e8cb, type: 2}
_choices: []
_dialogueType: 1

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Dialogue/Task2_WinDialogue.asset.meta


fileFormatVersion: 2
guid: 77292c1386386844d808b7e5ad5485f3
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

22
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Task2.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3c4c03cb18bdd224b898e0687da8d1ac, type: 3}
m_Name: Task2
m_EditorClassIdentifier:
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueBeforeTask: {fileID: 11400000, guid: 51d45f4919bbf75429951b9afeeb0ca6,
type: 2}
_winDialogue: {fileID: 11400000, guid: 77292c1386386844d808b7e5ad5485f3, type: 2}
_loseDialogue: {fileID: 11400000, guid: bd01348075afad54497623d69415d173, type: 2}
_item: {fileID: 11400000, guid: 8aff2c01ad67b48d0a0627754d613415, type: 2}
_type: 1
_isDone: 0

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task2/Task2.asset.meta


fileFormatVersion: 2
guid: f053cd027694c2341b24e7a6637cd30b
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3.meta


fileFormatVersion: 2
guid: 914c91a3236fa904f8fba513e854ae56
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue.meta


fileFormatVersion: 2
guid: 14c36652b2b80f34982544c5f6f3a134
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

20
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Line6.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e49a73eb0802e10429213abfb59e46e1, type: 3}
m_Name: Line6
m_EditorClassIdentifier:
_sentence:
m_TableReference:
m_TableCollectionName: GUID:3023456eb4be043f1a0c6ede7f88d892
m_TableEntryReference:
m_KeyId: 21418818861391872
m_Key:

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Line6.asset.meta


fileFormatVersion: 2
guid: f6ff70cef5ec5f7438bc36750f2ff2a4
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

19
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Secondary Dialogue.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: Secondary Dialogue
m_EditorClassIdentifier:
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueLines:
- {fileID: 11400000, guid: 5dd8c314c9025984a95711c1527fe85b, type: 2}
_choices: []
_dialogueType: 3

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Secondary Dialogue.asset.meta


fileFormatVersion: 2
guid: a96a88b56ae09e8408fa02eeea91fa07
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

21
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Task3_StartDialogue.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a0c0171b565b4074a9462307824be26c, type: 3}
m_Name: Task3_StartDialogue
m_EditorClassIdentifier:
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueLines:
- {fileID: 11400000, guid: f6ff70cef5ec5f7438bc36750f2ff2a4, type: 2}
_choices:
- _response: {fileID: 11400000, guid: ef6aede833517e541b24b831e031f5e4, type: 2}
_nextDialogue: {fileID: 11400000, guid: a96a88b56ae09e8408fa02eeea91fa07, type: 2}
_dialogueType: 0

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Dialogue/Task3_StartDialogue.asset.meta


fileFormatVersion: 2
guid: f70689490c87e1c479cda63bc7047f9e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

22
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Task3.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3c4c03cb18bdd224b898e0687da8d1ac, type: 3}
m_Name: Task3
m_EditorClassIdentifier:
_actor: {fileID: 11400000, guid: 027d026cf519df04eb8b7bf251472e13, type: 2}
_dialogueBeforeTask: {fileID: 11400000, guid: f70689490c87e1c479cda63bc7047f9e,
type: 2}
_winDialogue: {fileID: 0}
_loseDialogue: {fileID: 0}
_item: {fileID: 11400000, guid: 981618c3eb6d24746a53ce7dbe6559a6, type: 2}
_type: 3
_isDone: 0

8
UOP1_Project/Assets/ScriptableObjects/Quests/Quest1/Task3/Task3.asset.meta


fileFormatVersion: 2
guid: 9141d636b142e18459e416f602aa7827
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

/UOP1_Project/Assets/ScriptableObjects/Dialogue/Choice No.asset.meta → /UOP1_Project/Assets/ScriptableObjects/Dialogue/Line NO.asset.meta

/UOP1_Project/Assets/ScriptableObjects/Dialogue/Choice Yes.asset.meta → /UOP1_Project/Assets/ScriptableObjects/Dialogue/Line Yes.asset.meta

/UOP1_Project/Assets/ScriptableObjects/Dialogue/Choice No.asset → /UOP1_Project/Assets/ScriptableObjects/Dialogue/Line NO.asset

/UOP1_Project/Assets/ScriptableObjects/Dialogue/Choice Yes.asset → /UOP1_Project/Assets/ScriptableObjects/Dialogue/Line Yes.asset

正在加载...
取消
保存