private void Start() { villager = GetComponent <VillagerScript>(); animatedText = InterfaceManager.instance.animatedText; animatedText.onTextReveal.AddListener((newChar) => ReproduceSound(newChar)); }
void Start() { dialogueAudio = GetComponent <DialogueAudio>(); animator = GetComponent <Animator>(); animatedText = InterfaceManager.instance.animatedText; animatedText.onEmotionChange.AddListener((newEmotion) => EmotionChanger(newEmotion)); animatedText.onAction.AddListener((action) => SetAction(action)); }
private void Start() { mainCamera = GameObject.Find("Main Camera").GetComponent <Camera>(); dialogueAudio = GetComponent <DialogueAudio>(); // 스크립트에 할당된 Particle 오브젝트를 딕셔너리에 추가 for (int i = 0; i < Particles.Length; i++) { EmotionParticles.Add(Particles[i].name, Particles[i].GetComponent <ParticleSystem>()); } animator = GetComponent <Animator>(); animatedText = InterfaceManager.instance.animatedText; animatedText.onAction.AddListener((action) => SetAction(action)); animatedText.onEmotionChange.AddListener((newEmotion) => EmotionChanger(newEmotion)); }
// Start is called before the first frame update void Start() { tMP = GetComponent <TMP_Animated>(); tMP.ReadText("TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTEST"); }
private void Awake() { animatedText = GetComponent <TMP_Animated>(); }
// Start is called before the first frame update void Start() { animator = GetComponent <Animator>(); animatedText = InterfaceManager.instance.animatedText; animatedText.onEmotionChange.AddListener((newEmotion) => EmotionChanger(newEmotion)); }