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)); } }
public GameEventsManager() { GameEventsManager.Instance = this; }
public WatchedKey(KeyCode keyCode) { this.KeyCode = keyCode; this.Manager = GameEventsManager.Instance; }