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