initial setup of character data and dialogue holder

This commit is contained in:
Amaan Shawkath
2023-07-08 13:26:56 +01:00
parent dc4261aab3
commit e55f5ff18f
8 changed files with 99 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 45139bbcbac1e2c4c86ff7094d67808e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View 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;
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ddda90cbbcf3ea54e9105c3a5f0ac9a5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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?"
};
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d9ec0a6e2647c134ca75553cf8197bfe
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f2e7a099c6d0e484ba52b864ad6253c2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: