示例#1
0
        /// <summary>
        /// Called when an input is received.
        /// </summary>
        /// <param name="input">The input.</param>
        public override void OnInput(Input input)
        {
            base.OnInput(input);

            if (this.menu.IsVisible)
            {
                input.SendTo(this.menu);
            }
        }
示例#2
0
文件: Game.cs 项目: vetuomia/rocket
 /// <summary>
 /// Called when an input is received.
 /// </summary>
 /// <param name="input">The input.</param>
 public virtual void OnInput(Input input) => input.SendTo(this);