Комментарии:
NullReferenceException: Object reference not set to an instance of an object
MapGenerator.GetRandomOpenTile () (at Assets/Scripts/Map/MapGenerator.cs:198)
Spawner+<SpawnEnemy>d__11.MoveNext () (at Assets/Scripts/Spawner.cs:44)
Fix: call Generate Map in Awake method class Spawner
private void Awake()
{
map = FindObjectOfType<MapGenerator>();
map.GenerateMap();
}
Thank you! 감사합니다!
Ответить21학번 김경민 잘생겼다!
ОтветитьAn anyone please help :
after i click play it is showing this...
after clicking it it takes to this line : Coord randomCoord = shuffledTileCoords.Dequeue ();
NullReferenceException: Object reference not set to an instance of an object
MapGenerator.GetRandomOpenTile () (at Assets/Scripts/MapGenerator.cs:221)
Spwaner+<SpwanEnemy>c__Iterator0.MoveNext () (at Assets/Scripts/Spwaner.cs:73)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
Spwaner:Update() (at Assets/Scripts/Spwaner.cs:62)
why my openTiles color doesnt change ?
Ответить"Can only run if not disabled"
There's a joke to be made here but i can't seem to make it
A very gratifying episode. Thanks again Sebastian Lague
Ответить" if (player is camping) - kill camper, else act normal" lol
Truly amazing Tutorial. Thanks!
what color scheme do you use for visual studio? would like to have that as well
ОтветитьIt appears the code is attempting to Dequeue openShuffledTileCoords before any were Queued. Getting a null reference error in GetRandomOpenTile. Has anyone experienced this issue?
ОтветитьMy enemies walk through my obstacles when they spawn in and idk why PLZ HELP!
ОтветитьHey Sebastian, after finishing this video, in my game enemies are not spawning....i coudnt find what the error is...can you help me here.
ОтветитьMy enemies wont spawn on diffrent locations
ОтветитьGetting this error:
Assets/Scripts/Spawner.cs(64,20): error CS1061: Type `MapGenerator' does not contain a definition for `GetTileFromPosition' and no extension method `GetTileFromPosition' of type `MapGenerator' could be found. Are you missing an assembly reference?
Anyway to fix this?
I want my enemies to spawn at waypoints on a map without tiles. There are 4 spawn points and I don't know how to code them. Everything I have tried has failed. PLZ HELP. Any help would be greatly appreciated. Also, I would still like to use the system Sebastian is using for counting how many enemies to spawn and when to start the next wave. I just want them to spawn at waypoint locations on my map that doesn't have tiles. Thanks heaps
ОтветитьWhat version is it?
Ответитьwhen i touch an obstacle my character starts gliding and doesn't stop until i shoot how do I fix this?
Ответить