Skip to content

Commit 5ff7869

Browse files
committed
MA!!!!!!!!!!
1 parent bbbd501 commit 5ff7869

39 files changed

+2174
-498
lines changed

SourceCode/MWW/Assets/Fonts/JetBrainsMono-Bold SDF.asset

Lines changed: 464 additions & 464 deletions
Large diffs are not rendered by default.
Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
using DG.Tweening;
22
using UnityEngine;
3+
using System;
34
public class MouthHandler : MonoBehaviour
45
{
5-
private Transform Transform;
6-
private void Awake()
7-
{
8-
Transform = transform;
9-
}
6+
[SerializeField] private AudioSource ASS;
7+
[SerializeField] private float Multiplr;
8+
[SerializeField] private int RoundUntil;
9+
private float a;
10+
private float[] spectrum;
11+
private void Awake() => spectrum = new float[32];
1012
private void FixedUpdate()
1113
{
12-
Transform.DOScaleY(Random.Range(0.065f, 0.1f), 0.1f);
14+
ASS.GetOutputData(spectrum, 1);
15+
foreach (float i in spectrum)
16+
{
17+
if (i.Equals(0))
18+
{
19+
a = 0.065f;
20+
break;
21+
}
22+
else a = Mathf.Clamp((float)Math.Round(i*1,RoundUntil)*Multiplr, 0.03f, 0.1f);
23+
}
24+
transform.DOScaleY(a, 0.25f);
1325
}
1426
}
3.74 KB
Loading

SourceCode/MWW/Assets/SharedAssets/Sprites/M-UnityHappySpeaking.png.meta

Lines changed: 143 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
3.69 KB
Loading

SourceCode/MWW/Assets/SharedAssets/Sprites/M-UnityNormalSpeaking.png.meta

Lines changed: 143 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
57.6 KB
Loading

0 commit comments

Comments
 (0)