Ejemplo n.º 1
0
 private void OnDisable()
 {
     WaterEngine.RenderCameras    = null;
     WaterEngine.RenderImage      = null;
     WaterEngine.currentCamera    = null;
     WaterEngine.currentTransform = null;
     this.DisableDepth();
     this.DisableReflection();
     this.DisableUnderWater();
 }
Ejemplo n.º 2
0
 private void OnEnable()
 {
     WaterEngine.RenderCameras    = new WaterEngine.RenderCallback(this.OnRenderCameras);
     WaterEngine.RenderImage      = new WaterEngine.RenderImageCallback(this.OnRenderImage);
     WaterEngine.currentCamera    = base.GetComponent <Camera>();
     WaterEngine.currentTransform = base.transform;
     this.EnableDepth();
     this.EnableReflection();
     this.EnableUnderWater();
     this.DebugFlags();
 }
Ejemplo n.º 3
0
 private void OnEnable()
 {
     WaterEngine.RenderCameras = new WaterEngine.RenderCallback(this.OnRenderCameras);
     WaterEngine.RenderImage = new WaterEngine.RenderImageCallback(this.OnRenderImage);
     WaterEngine.currentCamera = base.GetComponent<Camera>();
     WaterEngine.currentTransform = base.transform;
     this.EnableDepth();
     this.EnableReflection();
     this.EnableUnderWater();
     this.DebugFlags();
 }
Ejemplo n.º 4
0
 private void OnDisable()
 {
     WaterEngine.RenderCameras = null;
     WaterEngine.RenderImage = null;
     WaterEngine.currentCamera = null;
     WaterEngine.currentTransform = null;
     this.DisableDepth();
     this.DisableReflection();
     this.DisableUnderWater();
 }