Hello,
I've created two classes, class A and class B. Class B is inherited from class A:
public class A : MonoBehaviour {
void Awake() {
print("A::Awake");
}
}
public class B : A {
void Awake() {
print("B:Awake");
}
}
When I add a B class to a GameObject, only the print statement for B is called. I would like the Awake to be called for A as well. I read that you would normally pass the parent in through a constructor, but since we can't do that in Unity is there a different way?
Thank you, Justin