public void OnWillRenderObject() { if ((bool)reflection) { reflection.WaterTileBeingRendered(base.transform, Camera.current); } if ((bool)waterBase) { waterBase.WaterTileBeingRendered(base.transform, Camera.current); } }
public void OnWillRenderObject() { if (reflection) { reflection.WaterTileBeingRendered(Camera.current); } if (waterBase) { waterBase.WaterTileBeingRendered(Camera.current); } }
public void OnWillRenderObject() { if (!Camera.current.enabled) { return; } if (reflection) { reflection.WaterTileBeingRendered(transform, Camera.current); } if (waterBase) { waterBase.WaterTileBeingRendered(transform, Camera.current); } }