@SirTSur

Как решить ошибку CS01117?

Пишет-
Quaternion
does not contain a definition for
indetity

Код:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LevelManager : MonoBehaviour
{


    public static LevelManager instance;


    public Transform RespawnPoint;

    public GameObject PlayerPrefab;



    private void Awake ()
    {


        instance = this;
    }


    public void Respawn ()
    {


        Instantiate(PlayerPrefab, RespawnPoint.position, Quaternion.indetity);
    }
}
  • Вопрос задан
  • 37 просмотров
Решения вопроса 1
KraGenDeveloper
@KraGenDeveloper
Unity Developer
исправь indetity на identity в конце кода
public void Respawn ()
{
Instantiate(PlayerPrefab, RespawnPoint.position, Quaternion.identity);
}
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы