initial setup of character data and dialogue holder
This commit is contained in:
8
Assets/Scripts.meta
Normal file
8
Assets/Scripts.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: aae68c510effd74478cbde0435e11b18
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Assets/Scripts/DialogueSystem.meta
Normal file
8
Assets/Scripts/DialogueSystem.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 45139bbcbac1e2c4c86ff7094d67808e
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
17
Assets/Scripts/DialogueSystem/CharacterData.cs
Normal file
17
Assets/Scripts/DialogueSystem/CharacterData.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
[CreateAssetMenu(fileName = "CharacterData", menuName = "Characters/Generate Character Data", order = 1)]
|
||||||
|
public class CharacterData : ScriptableObject
|
||||||
|
{
|
||||||
|
public string m_name;
|
||||||
|
|
||||||
|
public int m_charisma;
|
||||||
|
public int m_strength;
|
||||||
|
public int m_dexterity;
|
||||||
|
public int m_intelligence;
|
||||||
|
|
||||||
|
// Note - the index of the dialogue will control what question it is linked too.
|
||||||
|
public List<Dialogue> m_dialogueOptions;
|
||||||
|
}
|
||||||
11
Assets/Scripts/DialogueSystem/CharacterData.cs.meta
Normal file
11
Assets/Scripts/DialogueSystem/CharacterData.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ddda90cbbcf3ea54e9105c3a5f0ac9a5
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
21
Assets/Scripts/DialogueSystem/Dialogue.cs
Normal file
21
Assets/Scripts/DialogueSystem/Dialogue.cs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class Dialogue
|
||||||
|
{
|
||||||
|
[SerializeField] private string m_dialogueText;
|
||||||
|
}
|
||||||
|
|
||||||
|
public class QuestionData
|
||||||
|
{
|
||||||
|
public string[] m_questions = new string[]
|
||||||
|
{
|
||||||
|
"Who are you?",
|
||||||
|
"Tell me something about yourself.",
|
||||||
|
"What is your greatest accomplishment?",
|
||||||
|
"Where do you see yourself in five years?",
|
||||||
|
"What are your salary requirements?"
|
||||||
|
};
|
||||||
|
}
|
||||||
11
Assets/Scripts/DialogueSystem/Dialogue.cs.meta
Normal file
11
Assets/Scripts/DialogueSystem/Dialogue.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d9ec0a6e2647c134ca75553cf8197bfe
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
12
Assets/Scripts/DialogueSystem/DialogueController.cs
Normal file
12
Assets/Scripts/DialogueSystem/DialogueController.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class DialogueController : MonoBehaviour
|
||||||
|
{
|
||||||
|
// TODO:
|
||||||
|
// - Load the correct character based on the character who has been interacted with
|
||||||
|
// - Display the 5 question options and hook up their responses
|
||||||
|
// - Fill out a character sheet as you go along
|
||||||
|
// - Update the visual with the text
|
||||||
|
}
|
||||||
11
Assets/Scripts/DialogueSystem/DialogueController.cs.meta
Normal file
11
Assets/Scripts/DialogueSystem/DialogueController.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f2e7a099c6d0e484ba52b864ad6253c2
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Reference in New Issue
Block a user