Beispiel #1
0
 /// <summary>
 /// Adds input from the specified key.
 /// </summary>
 public void HandleKeyPress(VirtualKeyboardKey key)
 {
     OnKeyPressed(key);
     TGK_Input.AddInput(key.Input);
     SetLayer(key.NextLayer);
 }
Beispiel #2
0
        public void HandleKeyPress(VirtualKeyboardKey _)
        {
            AudioClip clip = _keyPressCilps.OrderBy(__ => Random.Range(0f, 1f)).FirstOrDefault();

            _source.PlayOneShot(clip);
        }