Есть вопросы?

Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!

ошибка в Unity "error CS1002" Вся ошибка Assets\Скрипты\GG. cs(15,16): error CS1002: ; expected

Сам код;

using System. Collections;

using System. Collections. Generic;

using UnityEngine;

public class GG : MonoBehaviour {

public float Speed = 5f;

private Rigidbody2D rb;

// Start is called before the first frame update

void Start() {

rb = GetComponent ();

}

// Update is called once per frame

void Update() {

float X-0;

if ((Input. GetKey(KeyCode. A)) || (Input. GetKey(KeyCode. D)))

{

X - Input. GetAxis("Horizontal");

rb. MovePosition(rb. position + Vector2.right * Speed * X * Time. DeltaTime);

}

if (Input. GetKey(KeyCode. Space)) {

rb. AddForce(Vector2.up * 60);

}

}

}


ошибка в Unity error CS1002 Вся ошибка Assets\Скрипты\GG.cs(15,16): error CS1002: ; expectedСам ко

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

Знаешь правильный ответ?
ошибка в Unity "error CS1002" Вся ошибка Assets\Скрипты\GG. cs(15,16): error CS1002: ; expectedСам к...

Популярные вопросы