예제 #1
0
파일: Program.cs 프로젝트: vetuomia/rocket
        /// <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);