private void OnEnable() { this.MyCamera = base.gameObject.GetComponent <Camera>(); this.frostEffect = base.GetComponent <Frost>(); this.ScionStuff = base.GetComponent <ScionPostProcess>(); this.bleedEffect = base.GetComponent <BleedBehavior>(); this.aa_FXAA = base.GetComponent <FXAA>(); this.aa_SMAA = base.GetComponent <SMAA>(); this.amplifyMotion = base.GetComponent <AmplifyMotionEffect>(); this.sessao = base.GetComponent <SESSAO>(); this.hbao = base.GetComponent <HBAO>(); this.waterViz = base.gameObject.GetComponent <WaterViz>(); this.waterBlur = base.gameObject.GetComponent <WaterBlurEffect>(); this.waterBlurCeto = base.gameObject.GetComponent <UnderWaterPostEffect>(); this.farShadowCascade = base.gameObject.GetComponent <FarShadowCascade>(); if (Sunshine.Instance) { this.SunshineOccluders = Sunshine.Instance.Occluders; } this.reflexionMode_complex = LayerMask.GetMask(new string[] { "Camera", "Ignore Raycast" }); this.reflexionMode_simple = LayerMask.GetMask(new string[] { "Camera" }); this.reflexionMode_off = 0; }
private void OnDestroy() { if (LocalPlayer.Transform == base.transform) { LocalPlayer.Transform = null; LocalPlayer.Ridigbody = null; FMOD_StudioEventEmitter.LocalPlayerTransform = null; LocalPlayer.GameObject = null; LocalPlayer.PlayerBase = null; LocalPlayer.HeadTr = null; LocalPlayer.HipsTr = null; LocalPlayer.Inventory = null; LocalPlayer.ReceipeBook = null; LocalPlayer.SpecialActions = null; LocalPlayer.SpecialItems = null; LocalPlayer.MainCamTr = null; LocalPlayer.MainCam = null; LocalPlayer.InventoryCam = null; LocalPlayer.CamFollowHead = null; LocalPlayer.Animator = null; LocalPlayer.AnimControl = null; LocalPlayer.Create = null; LocalPlayer.Tuts = null; LocalPlayer.Sfx = null; LocalPlayer.Stats = null; LocalPlayer.FpCharacter = null; LocalPlayer.FpHeadBob = null; LocalPlayer.CamRotator = null; LocalPlayer.MainRotator = null; LocalPlayer.ScriptSetup = null; LocalPlayer.TargetFunctions = null; LocalPlayer.HitReactions = null; LocalPlayer.Buoyancy = null; LocalPlayer.WaterViz = null; LocalPlayer.AiInfo = null; LocalPlayer.WaterEngine = null; LocalPlayer.ItemDecayMachine = null; LocalPlayer.AnimatedBook = null; LocalPlayer.PassengerManifest = null; LocalPlayer.GreebleRoot = null; LocalPlayer.MudGreeble = null; LocalPlayer.PlayerDeadCam = null; LocalPlayer.PauseMenuBlur = null; LocalPlayer.PauseMenuBlurPsCam = null; LocalPlayer.HeldItemsData = null; LocalPlayer.Vis = null; } }
private void Awake() { LocalPlayer.Transform = this._transform; LocalPlayer.Ridigbody = this._ridigbody; FMOD_StudioEventEmitter.LocalPlayerTransform = LocalPlayer.Transform; LocalPlayer.GameObject = this._playerGO; LocalPlayer.PlayerBase = this._playerBase; LocalPlayer.HeadTr = this._headTr; LocalPlayer.HipsTr = this._hipsTr; LocalPlayer.Inventory = this._inventory; LocalPlayer.ReceipeBook = this._receipeBook; LocalPlayer.SpecialActions = this._specialActions; LocalPlayer.SpecialItems = this._specialItems; LocalPlayer.MainCamTr = this._mainCamTr; LocalPlayer.MainCam = this._mainCam; LocalPlayer.InventoryCam = this._inventoryCam; LocalPlayer.CamFollowHead = this._camFollowHead; LocalPlayer.Animator = this._animator; LocalPlayer.AnimControl = this._animControl; LocalPlayer.Create = this._create; LocalPlayer.Tuts = this._tuts; LocalPlayer.Sfx = this._sfx; LocalPlayer.Stats = this._stats; LocalPlayer.FpCharacter = this._fpc; LocalPlayer.FpHeadBob = this._fphb; LocalPlayer.CamRotator = this._camRotator; LocalPlayer.MainRotator = this._mainRotator; LocalPlayer.ScriptSetup = this._scriptSetup; LocalPlayer.TargetFunctions = this._targetFunctions; LocalPlayer.HitReactions = this._hitReactions; LocalPlayer.Buoyancy = this._buoyancy; LocalPlayer.WaterViz = this._waterViz; LocalPlayer.AiInfo = this._aiInfo; LocalPlayer.WaterEngine = this._waterEngine; LocalPlayer.ItemDecayMachine = this._itemDecayMachine; LocalPlayer.AnimatedBook = this._animatedBook; LocalPlayer.PassengerManifest = this._passengerManifest; LocalPlayer.GreebleRoot = this._greebleRoot; LocalPlayer.MudGreeble = this._mudGreeble; LocalPlayer.PlayerDeadCam = this._PlayerDeadCam; LocalPlayer.PauseMenuBlur = this._pauseMenuBlur; LocalPlayer.PauseMenuBlurPsCam = this._pauseMenuBlurPsCam; LocalPlayer.HeldItemsData = this._heldItemsData; LocalPlayer.Vis = this._vis; base.StartCoroutine(this.OldSaveCompat()); }
protected void Start() { this.cam = base.GetComponent<Camera>(); this.waterViz = base.GetComponent<WaterViz>(); this.heightBlitShader = Shader.Find("Hidden/HeightBlit"); if (this.heightBlitShader) { this.heightBlitMaterial = new Material(this.heightBlitShader); } if (!SystemInfo.supportsImageEffects) { base.enabled = false; return; } if (!this.blurShader || !this.material.shader.isSupported) { base.enabled = false; return; } }
protected void Start() { this.cam = base.GetComponent <Camera>(); this.waterViz = base.GetComponent <WaterViz>(); this.heightBlitShader = Shader.Find("Hidden/HeightBlit"); if (this.heightBlitShader) { this.heightBlitMaterial = new Material(this.heightBlitShader); } if (!SystemInfo.supportsImageEffects) { base.enabled = false; return; } if (!this.blurShader || !this.material.shader.isSupported) { base.enabled = false; return; } }