ПОЧЕМУ ПИШЕТ 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);
}
}

СофикаКис СофикаКис    3   22.03.2022 12:40    3

Другие вопросы по теме Информатика