Ja halt wie oben gesagt
<iframe width="560" height="315" src="<div class=" video-container"="">Achso und hier random code weil breit! (der ist ned free to use btw!, ich verklage euch wenn ihr den nutzt=!)
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class TextScript : MonoBehaviour { [Header("Text")] public string[] literalSpeech; public string desicionToMakeOne; public string desicionToMakeTwo; [Header("Scripts")] public DesicionManager decisionManager; [Header("Objects")] public TMP_Text dialogue; public GameObject ButtonDecisionOne; public GameObject ButtonDecisionTwo; public TMP_Text TextDecisionOne; public TMP_Text TextDecisionTwo; [Header("Var")] int count =0; private void Start() { ButtonDecisionOne.SetActive(false); ButtonDecisionTwo.SetActive(false); count = 0; dialogue.text = literalSpeech[count]; } private void Update() { showText(); } public void showText() { if(literalSpeech.Length > count) { if (Input.GetKeyDown(KeyCode.Space) || Input.GetKeyDown(KeyCode.Mouse0)|| Input.GetKeyDown(KeyCode.Mouse1)|| Input.GetKeyDown(KeyCode.Mouse2)) { if(count < literalSpeech.Length) { count++; dialogue.text = literalSpeech[count]; } } } else { showDesicion(); } } public void showDesicion() { ButtonDecisionOne.SetActive(true); TextDecisionOne.text = desicionToMakeOne; ButtonDecisionTwo.SetActive(true); TextDecisionTwo.text = desicionToMakeTwo; // Debug.Log("MakeDescision"); } }