I'm having a problem with a C # code I'm using to make a game on Unity3D Version 5.2.0f3
This Code I picked up on a video of Playing with Nils (Youtube Channel that teaches you how to develop games.
This is an error when setting the Commands of the player, especially now that unity3d has updated and is using Visual Studio 2015 (I do not know how to play it).
After I created a C # code to use in my player, it introduced the following errors:
ThisistheCode:
usingUnityEngine;//ObrigadoporavisardestalinhagamesinsanitypublicclassPlayer:MonoBehaviour{//Theforcewhichisaddedwhentheplayerjumps//ThiscanbechangedintheInspectorwindowpublicVector2jumpForce=newVector2(0,280);//UpdateiscalledonceperframevoidUpdate(){//Jumpif(Input.GetKeyUp("space"))
{
Rigidbody2D.velocity = Vector2.zero;
Rigidbody2D.AddForce(jumpForce);
}
}
}