choke: nothing
parent
8eb3791f54
commit
587b2ab838
|
@ -93,7 +93,8 @@ namespace GadGame.MiniGame
|
||||||
{
|
{
|
||||||
//640x480;
|
//640x480;
|
||||||
var inputData = UdpSocket.Instance.DataReceived.PosPoint;
|
var inputData = UdpSocket.Instance.DataReceived.PosPoint;
|
||||||
var inputNormalize = new Vector2((inputData.x - 213.33f)/ 213.33f, inputData.y / 480);
|
// var inputNormalize = new Vector2((inputData.x - 213.33f)/ 213.33f, inputData.y / 480);
|
||||||
|
var inputNormalize = new Vector2(inputData.x/ 200, inputData.y / 480);
|
||||||
var input = new Vector2
|
var input = new Vector2
|
||||||
{
|
{
|
||||||
x = Mathf.Lerp(0, _canvas.pixelRect.width, inputNormalize.x),
|
x = Mathf.Lerp(0, _canvas.pixelRect.width, inputNormalize.x),
|
||||||
|
|
Loading…
Reference in New Issue