Пример #1
0
        private void WatchedKeyOnHold(GameEventsManager sender, WatchedKey watchedKey)
        {
            if (this.OnAnyWatchedKeyHold != null)
            {
                this.OnAnyWatchedKeyHold(this, watchedKey);
            }

            if (this.Debug.Keyboard)
            {
                UnityEngine.Debug.Log(String.Format("Keyboard: hold {0}", watchedKey.KeyCode));
            }
        }
Пример #2
0
 public GameEventsManager()
 {
     GameEventsManager.Instance = this;
 }
Пример #3
0
 public WatchedKey(KeyCode keyCode)
 {
     this.KeyCode = keyCode;
     this.Manager = GameEventsManager.Instance;
 }