Beispiel #1
0
        public void SetFailPostFX(bool enabled)
        {
            PostFXBase component = base.GetComponent <PostFXBase>();

            if (component != null)
            {
                if (enabled)
                {
                    component.enabled = true;
                }
                else
                {
                    component.enabled = component.originalEnabled;
                }
                component.SepiaColor = !enabled ? this.normalColor : this.failColor;
            }
        }
Beispiel #2
0
        private void AdjustShadowColors()
        {
            Camera main = Camera.main;

            if (main != null)
            {
                PostFXBase component = main.GetComponent <PostFXBase>();
                if (component != null)
                {
                    float avatarShadowAdjust = component.AvatarShadowAdjust;
                    foreach (ColorAdjuster adjuster in this._shadowColorAdjusterList)
                    {
                        adjuster.ApplyLerp(avatarShadowAdjust);
                    }
                    this._isShadowColorAdjusted = true;
                }
            }
        }
Beispiel #3
0
        public void Start()
        {
            UnityEngine.Object.Instantiate <GameObject>(Miscs.LoadResource <GameObject>("UI/UIToolkits/FPSIndicator", BundleType.RESOURCE_FILE));
            this.PreStartHandleBenchmark();
            Singleton <StageManager> .Instance.InitAtStart();

            Singleton <AvatarManager> .Instance.InitAtStart();

            this.HandleAlreadyLoadedCameras();
            Singleton <MonsterManager> .Instance.InitAtStart();

            Singleton <PropObjectManager> .Instance.InitAtStart();

            Singleton <DynamicObjectManager> .Instance.InitAtStart();

            Singleton <EffectManager> .Instance.InitAtStart();

            Singleton <EventManager> .Instance.InitAtStart();

            Singleton <AuxObjectManager> .Instance.InitAtStart();

            Singleton <DetourManager> .Instance.InitAtStart();

            this.HandleAlreadyLoadedPrefabs();
            BaseMonoAvatar avatar = Singleton <AvatarManager> .Instance.TryGetLocalAvatar();

            if (avatar != null)
            {
                Singleton <WwiseAudioManager> .Instance.SetListenerFollowing(avatar.transform, new Vector3(0f, 2f, 0f));
            }
            string[] soundBankNames = new string[] { "All_In_One_Bank", "BK_Global", "BK_Events", "Test_3D_Att" };
            Singleton <WwiseAudioManager> .Instance.PushSoundBankScale(soundBankNames);

            PostFXBase base2 = UnityEngine.Object.FindObjectOfType <PostFXBase>();

            if (base2 != null)
            {
                base2.originalEnabled = true;
            }
            this.PostStartHandleBenchmark();
        }