No trap no life
-
Автор темы
- #1
C#:
public class PlayerMovement : MonoBehaviour
{
public float playerspeedRL = 5.0f;
public float playerspeed = 1.0f;
public FixedJoystick joystick;
void Start()
{
}
void Update()
{
transform.position += new Vector3(joystick.Direction.x * playerspeedRL * Time.deltaTime, 0, playerspeed * Time.deltaTime);