示例#1
0
 public Sprite getImageBack()
 {
     if (unit != null && unit.definesBackground())
     {
         return(unit.getPortraitBackground());
     }
     if (house != null)
     {
         return(map.world.textureStore.layerBack[house.background]);
     }
     if (imgIndBack == -1)
     {
         imgIndBack = Eleven.random.Next(map.world.textureStore.layerBack.Count);
     }
     return(map.world.textureStore.layerBack[imgIndBack]);
 }