Пример #1
0
        protected virtual void Awake()
        {
            Core.PlayFab.EnsureActivation();

            Instance = this;

            Pause      = Dependancy.Get <LevelPause>(gameObject);
            Speed      = Dependancy.Get <LevelSpeed>(gameObject);
            Proponents = Dependancy.Get <LevelProponents>(gameObject);

            Menu = FindObjectOfType <LevelMenu>();
            Menu.Configure(this);

            Background = Dependancy.Get <LevelBackground>(gameObject);
            Finish     = Dependancy.Get <LevelFinish>(gameObject);
            Timer      = Dependancy.Get <LevelTimer>(gameObject);

            camera = FindObjectOfType <GameCamera>();

            Modules.Configure(this);
        }