コード例 #1
0
        public void InputProcessing_InputMessageEvent(NeoAxis.Component_InputProcessing sender, NeoAxis.UIControl playScreen, NeoAxis.Component_GameMode gameMode, NeoAxis.InputMessage message)
        {
            var car = Owner.Parent.Parent;

            if (car == null)
            {
                return;
            }
        }
コード例 #2
0
 public void InputMessageEvent(NeoAxis.Component_InputProcessing sender, NeoAxis.UIControl playScreen, NeoAxis.Component_GameMode gameMode, NeoAxis.InputMessage message)
 {
     if (sender.IsKeyPressed(EKeys.Space) && message.GetType().ToString() == "NeoAxis.InputMessageKeyPress")
     {
         lifeValue = lifeValue + 1;
         OnSignal?.Invoke(lifeValue);
         //ScreenMessages.Add("Space");
     }
 }
コード例 #3
0
        public void InputProcessing_InputMessageEvent(NeoAxis.Component_InputProcessing sender, UIControl playScreen, NeoAxis.InputMessage message)
        {
            //get access to the ship
            var ship = sender.Parent;

            if (ship == null)
            {
                return;
            }
            //var keyDown = message as InputMessageKeyDown;
            //if(keyDown != null)
            //{
            //	if(keyDown.Key == EKeys.Space)
            //	{
            //		//var body = ship.GetComponent<Component_RigidBody2D>();
            //		//if (body != null)
            //		//{
            //		//	body.ApplyForce(new Vector2(1, 0));
            //		//}
            //	}
            //}
        }