示例#1
0
 public float GetTerrainHeight(Vector3 pos)
 {
     if (Pathea.PeGameMgr.IsStory)
     {
         if (null == mHeightMap)
         {
             return(100f);
         }
         return(mHeightMap.GetHeight(new Vector2(pos.x, pos.z), mWorldSize));
     }
     if (Pathea.PeGameMgr.IsCustom)
     {
         return(100f);
     }
     return(VFDataRTGen.GetBaseTerHeight(new IntVector2(Mathf.RoundToInt(pos.x), Mathf.RoundToInt(pos.z))));
 }