public void TryRunDelegate() { if (this.menuDelegate != null) { if (GameWorld.controller.ContainsBool(this.actionType)) { GameWorld.audio.PlaySound("menuClick"); this.menuDelegate.Run(); } } }