public void OnWillRenderObject() { if (reflection) { reflection.WaterTileBeingRendered(transform, Camera.current); } if (waterBase) { waterBase.WaterTileBeingRendered(transform, Camera.current); } }
public void OnWillRenderObject() { if (reflection != null && reflection.enabled) { reflection.WaterTileBeingRendered(Camera.current); } if (waterBase != null && waterBase.enabled) { waterBase.WaterTileBeingRendered(Camera.current); } }