tigranpesoz3twi
29.05.2020 06:05

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

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
Mal4uk23
21.03.2022 07:40

Объяснение:

В скрипте есть ошибка

Это:

using System,Collections.Generic

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота