示例#1
0
        private void Awake()
        {
            IUIStack uiStack = gameObject.AddComponent <UIStack>();

            uiStack.SetDependencies(_slider, permanentbottom);
            BasePopup.SetDependencies(uiStack);
            permanentbottom._uiStack = uiStack;

            Application.targetFrameRate = 45;
            EventBus.Instance.register <IRepositoryEvents>(gameObject);
            StorageManager instance = StorageManager.Instance;

            _repo = new Repository();
            BaseModel.SetDependencies(_repo);

            _subjectController.SetDependencies(_repo);
            _subjectController2.SetDependencies(_repo);
            _favView.SetDependencies(_repo);
            _homeView.SetDependencies(_repo);
            _registerView.SetDependencies(_repo);
            _ratingView.SetDependencies(_repo);
            _loginView.SetDependencies(this);
            _settingsView.SetGuiRoot(this);
            UserManager.Instance.SetRepo(_repo);
            _repo.Initialize();
        }