コード例 #1
0
    private void Start()
    {
        villager = GetComponent <VillagerScript>();

        animatedText = InterfaceManager.instance.animatedText;
        animatedText.onTextReveal.AddListener((newChar) => ReproduceSound(newChar));
    }
コード例 #2
0
ファイル: VillagerScript.cs プロジェクト: YaLuTi/Party
 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
ファイル: TestTMPAnimate.cs プロジェクト: YaLuTi/Party
 // 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));
 }