Пример #1
0
    private void Start()
    {
        villager = GetComponent <VillagerScript>();

        animatedText = InterfaceManager.instance.animatedText;
        animatedText.onTextReveal.AddListener((newChar) => ReproduceSound(newChar));
    }
Пример #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));
 }
Пример #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));
    }
Пример #4
0
 // Start is called before the first frame update
 void Start()
 {
     tMP = GetComponent <TMP_Animated>();
     tMP.ReadText("TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTEST");
 }
Пример #5
0
 private void Awake()
 {
     animatedText = GetComponent <TMP_Animated>();
 }
Пример #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));
 }