Answer the question
In order to leave comments, you need to log in
How to fix error CS1001?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
[SerializeField] private float _speed;
private Vector3 _input;
private Rigidbody2D ..rigidbody;
private void Start();
{
_rigidbody = GetComponent<Rigidbody2D>();
}
private void FixedUpdate();
{
move();
}
private void move();
{
_input = new Vector2(Input.GetAxis("Horizontal"), 0);
_rigidbody.AddForce(_input * _speed);
}
Answer the question
In order to leave comments, you need to log in
Learn to compose a question)
If you answer the question from the title
I have error CS1001?
private Rigidbody2D ..rigidbody;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question