Jump to content

Recommended Posts

Mam problem jestem początkującym programistą amatorem w Unity (skrypty pisze w C#)

 Wyskakuje mi błąd: "Curl error 6: Could not resolve host: cdp.cloud.unity3d.com" próbowałem już wejść na ten link ale wyskakiwało białe tło

Jak moge to naprawić?

Tu daje mój skrypt:

using System.Collections;

using System.Collections.Generic;

using UnityEngine;


public class player : MonoBehaviour



    public float moveSpeed;

    public float jumpHeight;


    // Start is called before the first frame update

    void Start()





    // Update is called once per frame

    void Update()


        if (Input.GetKey(KeyCode.W))


            GetComponent<Rigidbody2D> ().velocity = new Vector2 (0, jumpHeight);




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...