Пример #1
0
        private void Start()
        {
            empty_msg     = new MessageBus.Message();
            update_action = YagaUpdate;

            var extension = GetType().GetCustomAttributes(
                typeof(Extension), true)[0] as Extension;

            extensions = new List <IExtension>();

            foreach (Extensions ext in extension.extensions)
            {
                switch (ext)
                {
                case Extensions.LOCALIZATION:
                    extensions.Add(new Localization.UnityTextLocalizationExtension(this));
                    break;

                case Extensions.SUBSCRIBE_MESSAGE:
                    extensions.Add(new SubscribeExtention(this));
                    break;

                case Extensions.PAUSE:
                    extensions.Add(new PauseExtension(this));
                    break;
                }
            }

            foreach (IExtension ext in extensions)
            {
                ext.Start();
            }

            ExtendedStart();
        }
Пример #2
0
 public void last(Yaga.MessageBus.Message msg)
 {
     finished = true;
 }