// Update is called once per frame void Update() { inspect = temp.get_key_assignment((int)key_config.up); inspect2 = temp2.get_key_assignment((int)key_config.up); Vector3 vel = Vector3.zero; if (temp.get_key((int)key_config.up)) { print("UP"); vel.y += 5; } if (temp2.get_key((int)key_config.up)) { print("UP2"); vel.y += 5; } if (temp.get_key((int)key_config.down)) { print("DOWN"); vel.y -= 5; } if (temp2.get_key((int)key_config.down)) { print("DOWN2"); vel.y -= 5; } if (temp.get_key((int)key_config.right)) { print("RIGHT"); vel.x += 5; } if (temp2.get_key((int)key_config.right)) { print("RIGHT2"); vel.x += 5; } if (temp.get_key((int)key_config.left)) { print("LEFT"); vel.x -= 5; } if (temp2.get_key((int)key_config.left)) { print("LEFT2"); vel.x -= 5; } rigidbody.velocity = vel; if (Input.GetKeyDown(KeyCode.LeftShift)) { if (temp.current_keyboard() == ConsistentKeyboard.Keyboard.Keyboard_Type.QWERTY) { temp.keyboard_switch(ConsistentKeyboard.Keyboard.Keyboard_Type.AZERTY); temp2.keyboard_switch(ConsistentKeyboard.Keyboard.Keyboard_Type.AZERTY); } else { temp.keyboard_switch(ConsistentKeyboard.Keyboard.Keyboard_Type.QWERTY); temp2.keyboard_switch(ConsistentKeyboard.Keyboard.Keyboard_Type.QWERTY); } } }