WaterTileBeingRendered() public méthode

public WaterTileBeingRendered ( Transform tr, Camera currentCam ) : void
tr Transform
currentCam Camera
Résultat void
 public void OnWillRenderObject()
 {
     if (reflection)
     {
         reflection.WaterTileBeingRendered(transform, Camera.current);
     }
     if (waterBase)
     {
         waterBase.WaterTileBeingRendered(transform, Camera.current);
     }
 }
Exemple #2
0
 public void OnWillRenderObject()
 {
     if (reflection != null && reflection.enabled)
     {
         reflection.WaterTileBeingRendered(Camera.current);
     }
     if (waterBase != null && waterBase.enabled)
     {
         waterBase.WaterTileBeingRendered(Camera.current);
     }
 }