///////////////////////////////////////////// void Start() { #if DEBUG //Let's assume that when the release is built, theese checks are passed if (repositionEvent == null) { Debug.LogError("RepositionManager " + name + ": component not correctly initialized."); enabled = false; return; } #endif repositionEvent.RegisterForEvent(Reposition); }