Some fixes made, object picking logic added
This commit is contained in:
@@ -78,7 +78,7 @@ public class KeyboardManager : NetworkBehaviour
|
||||
|
||||
string letter = label.text;
|
||||
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, gameObject);
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, button.gameObject);
|
||||
switch (_shiftMode)
|
||||
{
|
||||
case ShiftMode.Lowercase:
|
||||
@@ -99,7 +99,7 @@ public class KeyboardManager : NetworkBehaviour
|
||||
|
||||
void OnShiftPressed()
|
||||
{
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, gameObject);
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, shiftButton.gameObject);
|
||||
|
||||
_shiftMode = _shiftMode switch
|
||||
{
|
||||
@@ -114,7 +114,7 @@ public class KeyboardManager : NetworkBehaviour
|
||||
|
||||
void OnBackspacePressed()
|
||||
{
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, gameObject);
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, backspaceButton.gameObject);
|
||||
|
||||
if (_input.Length > 0)
|
||||
_input = _input.Substring(0, _input.Length - 1);
|
||||
@@ -123,7 +123,7 @@ public class KeyboardManager : NetworkBehaviour
|
||||
|
||||
void OnEnterPressed()
|
||||
{
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.Click, gameObject);
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, enterButton.gameObject);
|
||||
|
||||
if (_input.Length > 0)
|
||||
{
|
||||
@@ -134,7 +134,7 @@ public class KeyboardManager : NetworkBehaviour
|
||||
|
||||
void OnSpacePressed()
|
||||
{
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, gameObject);
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.LetterEnter, spaceButton.gameObject);
|
||||
|
||||
addToInput(" ");
|
||||
UpdateOutput();
|
||||
|
||||
Reference in New Issue
Block a user