I’ve been looking all over. Using typeof() will only return the subclass.
class Enemy{}
class Beast extends Enemy{}
var beast = new Beast();
print(beast.GetType() == typeof(Enemy));
// >false
For my game to be as efficient as possible, I really need to somehow find the superclass of a subclass, and this is really annoying me. How can you get the superclass?