El nombre ‘Assert’ no existe en el contexto actual
– UnityAssets3Free
bienvenido , me llamo juansito y aqui os traigo
esta unity pregunta
Actualmente estoy creando un administrador para mi juego, pero sigo teniendo este problema en Unity:
El nombre ‘Assert’ no existe en el contexto actual
Aquí está mi código:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : Singleton<GameManager>
[SerializeField] private Player currentPlayer;
public Player CurrentPlayer
get return currentPlayer;
private void Awake()
Assert.IsNotNull(currentPlayer);
1 respuesta 1
Importe el espacio de nombres, agregue
using UnityEngine.Assertions;
en la parte superior de su archivo.
nota: si aun no se resuelve tu pregunta por favor dejar un comentario y pronto lo podremos de nuevo , muchas gracias
eso es todo,espero que te halla servido