Options Dialog refactor for more generic
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using Assets.Scripts.Interfaces;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu()]
|
||||
public class DialogCategorySO : ScriptableObject
|
||||
{
|
||||
public string Title;
|
||||
public Sprite Icon;
|
||||
public List<IDialogOption> OptionsList;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using Assets.Scripts.Interfaces;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu()]
|
||||
public class DialogSO : ScriptableObject
|
||||
{
|
||||
public string Title;
|
||||
public MonoBehaviour UITemplate;
|
||||
public List<DialogCategorySO> CategoriesSO;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bf7ee1c503cbe524b8a52dc86566b3b6
|
||||
@@ -0,0 +1,10 @@
|
||||
using Assets.Scripts.Interfaces;
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu()]
|
||||
public class EducationInfoSO : IDialogOption
|
||||
{
|
||||
public string Description;
|
||||
public float Price;
|
||||
public EducationSkill Skill;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3ba71c02cddb93d408c7c1b2f9846099
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,11 +1,11 @@
|
||||
using UnityEngine;
|
||||
using Assets.Scripts.Interfaces;
|
||||
|
||||
[CreateAssetMenu()]
|
||||
public class JobInfoSO : ScriptableObject
|
||||
public class JobInfoSO : IDialogOption
|
||||
{
|
||||
public string Description;
|
||||
public float Salary;
|
||||
public Sprite Icon;
|
||||
public JobPositions JobPosition;
|
||||
public EducationSkill MinimumEducationSkill;
|
||||
}
|
||||
|
||||
@@ -12,8 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 5e5ea608dd4175941b878e8e1a585970, type: 3}
|
||||
m_Name: Clerk
|
||||
m_EditorClassIdentifier:
|
||||
Icon: {fileID: 0}
|
||||
Description: Clerk
|
||||
Salary: 5
|
||||
Icon: {fileID: 0}
|
||||
JobPosition: 2
|
||||
MinimumEducationSkill: 1
|
||||
JobPosition: 0
|
||||
MinimumEducationSkill: 0
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
%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: bf7ee1c503cbe524b8a52dc86566b3b6, type: 3}
|
||||
m_Name: JobAgency
|
||||
m_EditorClassIdentifier:
|
||||
Title: Job Agency
|
||||
UITemplate: {fileID: 4899774397145829728, guid: 3fd1d54e5064a0841972b791abc6919f,
|
||||
type: 3}
|
||||
CategoriesSO:
|
||||
- {fileID: 11400000, guid: 137a0a77aa02f614ead909f23a670e95, type: 2}
|
||||
- {fileID: 11400000, guid: f0d3baaabf19f9a4a80e227316362d84, type: 2}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8c330d22202c025408b0fcf250a57d15
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -12,8 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 5e5ea608dd4175941b878e8e1a585970, type: 3}
|
||||
m_Name: Manager
|
||||
m_EditorClassIdentifier:
|
||||
Icon: {fileID: 0}
|
||||
Description: Manager
|
||||
Salary: 9
|
||||
Icon: {fileID: 0}
|
||||
JobPosition: 4
|
||||
MinimumEducationSkill: 3
|
||||
JobPosition: 0
|
||||
MinimumEducationSkill: 0
|
||||
|
||||
@@ -12,8 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 5e5ea608dd4175941b878e8e1a585970, type: 3}
|
||||
m_Name: ManagerAssistant
|
||||
m_EditorClassIdentifier:
|
||||
Icon: {fileID: 0}
|
||||
Description: Manager assistaint
|
||||
Salary: 6
|
||||
Icon: {fileID: 0}
|
||||
JobPosition: 3
|
||||
MinimumEducationSkill: 2
|
||||
JobPosition: 0
|
||||
MinimumEducationSkill: 0
|
||||
|
||||
@@ -12,9 +12,9 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: f667daa0686227b49a9ca2ebd6326a98, type: 3}
|
||||
m_Name: Minimarket
|
||||
m_EditorClassIdentifier:
|
||||
Place: Shop
|
||||
Title: Mini market
|
||||
Icon: {fileID: 21300000, guid: c5e761867408abd48bdbfcc36c949f44, type: 3}
|
||||
JobPositionsList:
|
||||
OptionsList:
|
||||
- {fileID: 11400000, guid: c7452dc6dfb2cc040a6d0e543db6b671, type: 2}
|
||||
- {fileID: 11400000, guid: 36ad6fbffd0cc574aaf7d76308d965a1, type: 2}
|
||||
- {fileID: 11400000, guid: 4381db145ac80514c957374e20392b3b, type: 2}
|
||||
- {fileID: 11400000, guid: 36ad6fbffd0cc574aaf7d76308d965a1, type: 2}
|
||||
|
||||
@@ -12,9 +12,9 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: f667daa0686227b49a9ca2ebd6326a98, type: 3}
|
||||
m_Name: Office
|
||||
m_EditorClassIdentifier:
|
||||
Place: Office
|
||||
Title: Office
|
||||
Icon: {fileID: 21300000, guid: c5e761867408abd48bdbfcc36c949f44, type: 3}
|
||||
JobPositionsList:
|
||||
OptionsList:
|
||||
- {fileID: 11400000, guid: 9dd346cdfec57ee47ad1c06a925769bb, type: 2}
|
||||
- {fileID: 11400000, guid: 36ad6fbffd0cc574aaf7d76308d965a1, type: 2}
|
||||
- {fileID: 11400000, guid: 4381db145ac80514c957374e20392b3b, type: 2}
|
||||
- {fileID: 11400000, guid: 36ad6fbffd0cc574aaf7d76308d965a1, type: 2}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
[CreateAssetMenu()]
|
||||
public class JobsListSO : ScriptableObject
|
||||
{
|
||||
public string Place;
|
||||
public Sprite Icon;
|
||||
public List<JobInfoSO> JobPositionsList;
|
||||
}
|
||||
Reference in New Issue
Block a user