Beispiel #1
0
        public virtual void Initialize()
        {
            UpdaterBehaviour updater = UpdaterBehaviour.GetUpdater();

            updater.UpdateAction      += DoUpdate;
            updater.LateUpdateAction  += DoLateUpdate;
            updater.FixedUpdateAction += DoFixedUpdate;

            InitializeServices();

            serviceDispatcher.Register(UpdateService.NAME, new UpdateService());
            serviceDispatcher.Register(LateUpdateService.NAME, new LateUpdateService());
            serviceDispatcher.Register(FixedUpdateService.NAME, new FixedUpdateService());

            InitializeObservers();
            InitializeCommands();
            InitializeProxies();
        }