ПОЧЕМУ ПИШЕТ Assets�ਯ�� 1\PlayrControler.cs(23,9): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement? ВОТ СКРИПТ,ГДЕ ОШИБКА?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayrControler : MonoBehaviour
{
public float speed;
public float jumpForce;
private float moveInput;
private Rigidbody2D rb;
private void Start()
{
rb = GetComponent<Rigidbody2D>();
}
private void FixedUpdate()
{
moveInput = Input.GetAxis("Horizontal");
rb.velocity + new Vector2(moveInput * speed, rb.velocity.y);
}
}
Объяснение:
В скрипте есть ошибка
Это:
using System,Collections.Generic