Синтаксис:
Используется csharp
if (Input.GetKey (KeyCode.Mouse0))
{
Vector3 a = Input.mousePosition;
Vector3 b = CamCil.ScreenToWorldPoint(new Vector3(a.x, a.y, 0.0f));
transform.Translate (new Vector3(b.x,b.y,0.0f));
}
{
Vector3 a = Input.mousePosition;
Vector3 b = CamCil.ScreenToWorldPoint(new Vector3(a.x, a.y, 0.0f));
transform.Translate (new Vector3(b.x,b.y,0.0f));
}
Персонаж просто подает сильно в минус по Y X не передается вовсе!