occlusion for 5 sounds added, new sounds were added, however the issue with the layer of glass walls has to be resolved
This commit is contained in:
@@ -26,6 +26,7 @@ public class KeyboardManager : NetworkBehaviour
|
||||
private float _currentScore;
|
||||
private ShiftMode _shiftMode = ShiftMode.Lowercase;
|
||||
|
||||
|
||||
void Start()
|
||||
{
|
||||
foreach (var button in letterButtons)
|
||||
@@ -77,6 +78,7 @@ public class KeyboardManager : NetworkBehaviour
|
||||
|
||||
string letter = label.text;
|
||||
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, gameObject);
|
||||
switch (_shiftMode)
|
||||
{
|
||||
case ShiftMode.Lowercase:
|
||||
@@ -97,6 +99,8 @@ public class KeyboardManager : NetworkBehaviour
|
||||
|
||||
void OnShiftPressed()
|
||||
{
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, gameObject);
|
||||
|
||||
_shiftMode = _shiftMode switch
|
||||
{
|
||||
ShiftMode.Lowercase => ShiftMode.NextUppercase,
|
||||
@@ -110,6 +114,8 @@ public class KeyboardManager : NetworkBehaviour
|
||||
|
||||
void OnBackspacePressed()
|
||||
{
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, gameObject);
|
||||
|
||||
if (_input.Length > 0)
|
||||
_input = _input.Substring(0, _input.Length - 1);
|
||||
UpdateOutput();
|
||||
@@ -117,6 +123,8 @@ public class KeyboardManager : NetworkBehaviour
|
||||
|
||||
void OnEnterPressed()
|
||||
{
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.Hover, gameObject);
|
||||
|
||||
if (_input.Length > 0)
|
||||
{
|
||||
scoreBoard.SaveScore(_input, _currentScore);
|
||||
@@ -126,6 +134,8 @@ public class KeyboardManager : NetworkBehaviour
|
||||
|
||||
void OnSpacePressed()
|
||||
{
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, gameObject);
|
||||
|
||||
addToInput(" ");
|
||||
UpdateOutput();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user