Beispiel #1
0
        /////////////////////////////////////////////
        void Start()
        {
#if DEBUG //Let's assume that when the release is built, theese checks are passed
            if (score == null)
            {
                Debug.LogError("DifficultyManager " + name + ": component not correctly initialized.");
                enabled = false;
                return;
            }
#endif
            score.RegisterForUpdate(UpdateVelocity);
        }