So I am new with unity and i have a 2D project (Space Invader) and I have to use data structure in coding so I made a script and called it WaveSpawner which spawn a wave in the start of the game and I used linked list to link them but when I use " WaveSpawner.Wave.aliens.Remove(gameObject) " in Alien.sc which is a script component of prefabs of the enemy it gives me this error " object reference not set to an instance of an object ".
how to fix it?
5306640–533274–SpaceInvader.zip (532 Bytes)