Ejemplo n.º 1
0
    private void Start()
    {
        villager = GetComponent <VillagerScript>();

        animatedText = InterfaceManager.instance.animatedText;
        animatedText.onTextReveal.AddListener((newChar) => ReproduceSound(newChar));
    }
Ejemplo n.º 2
0
 void Start()
 {
     dialogueAudio = GetComponent <DialogueAudio>();
     animator      = GetComponent <Animator>();
     animatedText  = InterfaceManager.instance.animatedText;
     animatedText.onEmotionChange.AddListener((newEmotion) => EmotionChanger(newEmotion));
     animatedText.onAction.AddListener((action) => SetAction(action));
 }
Ejemplo n.º 3
0
    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));
    }
Ejemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     tMP = GetComponent <TMP_Animated>();
     tMP.ReadText("TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTEST");
 }
Ejemplo n.º 5
0
 private void Awake()
 {
     animatedText = GetComponent <TMP_Animated>();
 }
Ejemplo n.º 6
0
 // Start is called before the first frame update
 void Start()
 {
     animator     = GetComponent <Animator>();
     animatedText = InterfaceManager.instance.animatedText;
     animatedText.onEmotionChange.AddListener((newEmotion) => EmotionChanger(newEmotion));
 }