Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. - (void)didChangeSize:(CGSize)oldSize
  2. {
  3. for (Tile *tile in self.tiles)
  4. {
  5. tile.size = /* some complex calculations */;
  6. tile.position = /* some more complex calculations */;
  7. }
  8.  
  9. for (Unit *unit in self.units)
  10. {
  11. Tile *tile = [self.tiles objectAtIndex:unit.locationIndex];
  12. unit.size = tile.size;
  13. unit.position = tile.position;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement