Beispiel #1
0
        public override void Initialize()
        {
            this.StartCoroutine(InitializeCoroutine());

            IEnumerator InitializeCoroutine()
            {
                yield return(ReleasesManager.WaitForInitialization());

                yield return(AddressablesManager.WaitForInitialization());

                this.settings = ReleasesManager.Instance.CurrentRelease.SpriteAtlasLoadingManagerSettings;

                this.SetInstance(this);
            }
        }
Beispiel #2
0
        public override void Initialize()
        {
            this.StartCoroutine(InitializeCoroutine());

            IEnumerator InitializeCoroutine()
            {
                yield return(ReleasesManager.WaitForInitialization());

                //// TODO [bgish]: Set the addressables location
                //// this.releasesManager.CurrentRelease.AddressablesLocation;

                yield return(UnityEngine.AddressableAssets.Addressables.InitializeAsync());

                this.SetInstance(this);
            }
        }
Beispiel #3
0
        public override void Initialize()
        {
            this.StartCoroutine(Coroutine());

            IEnumerator Coroutine()
            {
                yield return(ReleasesManager.WaitForInitialization());

                var settings = ReleasesManager.Instance.CurrentRelease.ScreenSizeManagerSettings;

                if (settings.LimitMobileScreenSize)
                {
                    yield return(this.LimitScreenSize(settings.MaxScreenSize));
                }

                this.SetInstance(this);
            }
        }
Beispiel #4
0
        public override void Initialize()
        {
            this.StartCoroutine(Coroutine());

            IEnumerator Coroutine()
            {
                if (Application.isEditor == false)
                {
                    yield return(ReleasesManager.WaitForInitialization());

                    this.settings = ReleasesManager.Instance.CurrentRelease.LoggingManagerSettings;

                    Application.logMessageReceived += this.Application_logMessageReceived;
                }

                this.SetInstance(this);
            }
        }
        public override void Initialize()
        {
            this.StartCoroutine(InitializeCoroutine());

            IEnumerator InitializeCoroutine()
            {
                yield return(ReleasesManager.WaitForInitialization());

                yield return(PlayFabManager.WaitForInitialization());

                var settings  = ReleasesManager.Instance.CurrentRelease.RealtimeMessageManagerSettings;
                var isEnabled = settings.IsEnabled;
                var ablyKey   = settings.AblyClientKey;

                if (isEnabled)
                {
#if !USING_ABLY
                    Debug.LogError("RealtimeMessageManager: Trying to use this manager, but the USING_ABLY define is not set." +
                                   "Make sure you have installed Ably 1.1.14 (https://github.com/ably/ably-dotnet/tree/1.1.14) and that the" +
                                   "USING_ABLY define is set or else this manager will not work.", this);
#else
                    if (ablyKey.IsNullOrWhitespace() == false)
                    {
                        this.InitilializeAbly(ablyKey);
                    }
                    else
                    {
                        Debug.LogError(
                            "RealtimeMessageManager requires a valid Ably Client Key in the Releases RealtimeMessageManagerSettings. " +
                            "This manager will not work properly. Go to https://www.ably.io/accounts to get a valid client key.", this);
                    }
#endif
                }

                this.SetInstance(this);
            }
        }