public class testa : testb {
void Update () {
Debug.LogWarning("TestA's update");
}
}
// This one is attached to an empty gameobject in the scene
public class testb : MonoBehaviour {
void Update () {
Debug.LogWarning("TestB's update");
}
}
The console only outputs "TestA's update" ONCE. Why and how do I solve this?
↧