internal void SetBlobShadowCam(BlobShadowRenderer blobShadowCam) { if (!(base.gameObject == null)) { blobShadowRenderer = blobShadowCam; SetIsActive(blobShadowCam.IsShadowsVisible); } }
public void OnPreRender() { BlobShadowRenderer blobShadowRenderer = SceneRefs.Get <BlobShadowRenderer>(); if (blobShadowRenderer != null) { blobShadowRenderer.RenderBlobs(); } }
public void Start() { if (SceneRefs.IsSet <BlobShadowRenderer>()) { blobShadowRenderer = SceneRefs.Get <BlobShadowRenderer>(); SetIsActive(blobShadowRenderer.IsShadowsVisible); } eventDispatcher.AddListener <BlobShadowEvents.DisableBlobShadows>(onDisableBlobShadows); eventDispatcher.AddListener <BlobShadowEvents.EnableBlobShadows>(onEnableBlobShadows); ScaleX = 0.6f; ScaleZ = 0.6f; }
public void Start() { if (SceneRefs.IsSet <BlobShadowRenderer>()) { this.blobShadowRenderer = SceneRefs.Get <BlobShadowRenderer>(); this.SetIsActive(this.blobShadowRenderer.IsShadowsVisible); } this.eventDispatcher.AddListener <BlobShadowEvents.DisableBlobShadows>(new EventHandlerDelegate <BlobShadowEvents.DisableBlobShadows>(this.onDisableBlobShadows), EventDispatcher.Priority.DEFAULT); this.eventDispatcher.AddListener <BlobShadowEvents.EnableBlobShadows>(new EventHandlerDelegate <BlobShadowEvents.EnableBlobShadows>(this.onEnableBlobShadows), EventDispatcher.Priority.DEFAULT); this.ScaleX = 0.6f; this.ScaleZ = 0.6f; }