private void OnBoomonEmotionChange(BoomonController.Emotion value)
    {
        var e = BoomonEmotionChange;

        if (e != null)
        {
            e(value);
        }
    }
Exemple #2
0
    private void OnEmotionChange(
        BoomonController.Emotion lastEmotion,
        BoomonController.Emotion nextEmotion)
    {
        _source.Stop();

        EmotionAudioClip clip = _emotionClips.FirstOrDefault(a => a.Emotion == nextEmotion);

        if (clip != null)
        {
            _source.PlayOneShot(clip.File);
        }
    }
 private void Update()
 {
     IsBoomonActive = _animableBoomonActive;
     BoomonState    = (BoomonController.State)_animableBoomonState;
     BoomonEmotion  = (BoomonController.Emotion)_animableBoomonEmotion;
 }
Exemple #4
0
 private void OnBoomonEmotionChange(BoomonController.Emotion emotion)
 {
     _game.Boomon.CurrentEmotion = emotion;
 }