Casting essentially tries to treat an object as if it’s another like say you had 2 enemy character classes each with different attacks, you could try to cast one to the other to allow one character to perform an attack they usually wouldn’t, in my experience witch isn’t a ton yet, it’s better to just get a reference to exactly what you need, casting often fails and in this case probably wouldn’t work for getting the spawners location
1 Like