private void OnBoomonEmotionChange(BoomonController.Emotion value) { var e = BoomonEmotionChange; if (e != null) { e(value); } }
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; }
private void OnBoomonEmotionChange(BoomonController.Emotion emotion) { _game.Boomon.CurrentEmotion = emotion; }