示例#1
0
        public void HandleInput()
        {
            Vector2 input = new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical"));

            mover.UpdateMovement(input.normalized);

            if (Input.GetKeyDown(KeyCode.Q))
            {
                lantern.ChangeLight();
            }
            else if (lantern.isLit && Input.GetKeyDown(KeyCode.E))
            {
                lantern.LightableLampsLight();
            }
        }