Sport Improvement Stack Alternate is a query and reply website for skilled and unbiased sport builders. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
The very best solutions are voted up and rise to the highest
Requested
Considered
5 instances
I acquired 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 moveInput;
non-public Rigidbody2D
non-public void Begin()
{
rb = GetComponent<Rigidbody2D>()
}
non-public void FixedUpdate()
{
moveInput = Enter.GetAxis("Horizontal");
rb.velocity = new Vector2(moveInput * pace, rb.velocity.y);
}
}
$endgroup$
1
lang-cs