Exemplo n.º 1
0
        protected override sealed void Start()
        {
            Queue <UIControllerTriggerAttribute> triggers = new Queue <UIControllerTriggerAttribute>();

            foreach (Attribute attribute in this.GetType().GetCustomAttributes(true))
            {
                if (attribute is UIControllerTriggerAttribute)
                {
                    triggers.Enqueue((UIControllerTriggerAttribute)attribute);
                }
            }


            UIManager.RegisterController(this);

            ProcessTriggers(triggers);
        }