Skip to content
Snippets Groups Projects
Commit b4ac50d4 authored by Samuel Truman's avatar Samuel Truman
Browse files

Load avatar name

parent 7c4ed073
No related branches found
No related tags found
No related merge requests found
......@@ -176,8 +176,16 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 101bbb0b25024acaa2dfe9ec266aac6f, type: 3}
m_Name:
m_EditorClassIdentifier:
articyId:
dialogId:
avatarName:
avatarNameTexts:
- {fileID: 4585156439228018144}
- {fileID: 4585156439109964244}
contentText: {fileID: 4585156438570032337}
buttons:
- {fileID: 4585156439180830946}
- {fileID: 4585156437762338373}
dialogPanel: {fileID: 4585156438373253512}
--- !u!1 &1235909505916248862
GameObject:
m_ObjectHideFlags: 0
......
using System;
using Articy.Unity;
using TMPro;
using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UI;
namespace de.jmu.ge.viavr.dialogs.runtime {
[RequireComponent(typeof(ArticyFlowPlayer))]
public class Dialog: MonoBehaviour {
public string dialogId;
public string avatarName;
[FormerlySerializedAs("avatarNameText")] [SerializeField] private TMP_Text[] avatarNameTexts;
[SerializeField] private TMP_Text contentText;
[SerializeField] private Button[] buttons;
[SerializeField] private GameObject dialogPanel;
private ArticyFlowPlayer articyFlowPlayer;
......@@ -18,6 +25,9 @@ private void Start() {
var id = Convert.ToUInt64(dialogId, 16);
articyFlowPlayer.StartOn = ArticyDatabase.GetObject(id);
// articyFlowPlayer.Play();
foreach(var tmpText in avatarNameTexts) {
tmpText.text = avatarName;
}
}
}
}
\ No newline at end of file
{
"name": "de.jmu.ge.dialogsystem.runtime",
"rootNamespace": "",
"references": [],
"references": [
"GUID:6055be8ebefd69e48b49212b09b47b2f"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment