ATimofeeva
21.06.2021 00:25

те кто знает язык C++ найдите ошибку в коде. using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Chacter : MonoBehaviour

{

public int lives = 3;

public float speed = 4.0f;

public float jumpforce = 1.0f;

public Rigidbody2D PlayerRigidbody;

public Animator charAnimator;

public SpriteRenderer sprite;

bool OnGround;

private void Awake()

{

PlayerRigidbody = GetComponentInChildren();

charAnimator = GetComponentInChildren();

sprite = GetComponentInChildren();

}

void Start()

{

}

void Move()

{

Vector3 tempvector = Vector3.right * Input.GetAxis("Horizontal");

transform.position = Vector3.MoveTowards(transform.position, transform.position + tempvector, speed * Time.deltaTime);

if (tempvector.x 1;

Debug.Log(colliders.Length);

}

private void FixedUpdate()

{

CheckGround();

}

void Update()

{

if (Input.GetButton("Horizontal"))

{

Move();

}

if (OnGround && Input.GetButton("Jump"))

{

jump();

}

}

}​

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
Smartfone
05.05.2023 01:48

— Hello! What do you want to order from our beautiful restaurant?

— Hello, hmm... I will eat vegetable salad. Do you have vegetable salad?

— Yes, we have. We have many other salads. Count them?

— No, thanks. I’ll eat vegetable salad.

— No problem! Something more?

— Yes. Do you have fried potatoes and chicken?

— Of course, we have.

— Nice! So, I will drink orange juice, do you have that?

— Yes, we have.

[10 minutes later/10 минут спустя)

— Your order, sir!

— Wait a minute! I didn’t ordered fish, I have ordered salad and fried chicken with potatoes!

— Oh! Sorry, I will change your order! I’m so sorry!

— Uhh...

0,0(0 оценок)
Ответ:
ansarildar
11.07.2020 20:20

1. Когда Нур-Султан станет ледяным городом? (In Nur-Sultan, 13 ice towns will appear by the New Year.)

2. Из чего люди делают  скульптуры? (какие именно скульптуры ? )(Мрамор,Гранит,Металлы,Глина,Глина,Бронза,Стекло)

3. Что обычно представляют собой скульптуры? (Sculpture is a type of fine art, the works of which have a three-dimensional shape and are made of solid materials by carving)

4. Когда проходит Квебекский зимний карнавал? (The Quebec Carnival, which has been held intermittently since 1894, has been celebrated annually since 1955.)

5 Сколько дней это длится?(annual winter holiday. It usually starts on the first Friday in January and lasts for 17 days.)

Объяснение:

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