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