Game Development Stack Exchange is a query and reply web site for skilled and unbiased recreation builders. It solely takes a minute to enroll.
Anybody can ask a query
Anybody can reply
The finest solutions are voted up and rise to the highest
Asked
Viewed
7 occasions
I bought the error CS1585 I used to be writing the code for the motion of the participant
utilizing System.Collections;
utilizing System.Collections.Generic;
utilizing UnityEngine;
public class participant : MonoBehaviour
{
public float pace;
public float jampForce;
public float transferInput;
personal Rigidbody2D
personal void Start()
{
rb = GetComponent<Rigidbody2D>()
}
personal void MountedUpdate()
{
transferInput = Input.GetAxis("Horizontal");
rb.velocity = new Vector2(transferInput * pace, rb.velocity.y);
}
}
$endgroup$
1
lang-cs