private void GetGenerators()
            {
                BehaviourManager.OnFinishedInitializing -= GetGenerators;

                _generators = new Dictionary <Type, CustomIDGeneratorAttribute>();

                foreach (CustomIDGeneratorAttribute generator in BehaviourManager.GetBehaviours <CustomIDGeneratorAttribute>())
                {
                    if (_generators.ContainsKey(generator.Type))
                    {
                        if (_generators[generator.Type].Priority < generator.Priority)
                        {
                            _generators[generator.Type] = generator;
                        }
                    }
                    else
                    {
                        _generators.Add(generator.Type, generator);
                    }
                }
            }
 public IEnumerable <Behaviour> GetBehaviours() => _behaviourManager.GetBehaviours() ?? Enumerable.Empty <Behaviour>();