Eonirr

Untitled

Apr 11th, 2025
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. float totalSize = 300;
  2. int nbSlot = 3;
  3.  
  4. var slotSize = totalSize / nbSlot; //100
  5.  
  6. Vector2 slot1 = new Vector2(0,slotSize);
  7. Vector2 slot2 = new Vector2(slot1.x + (solotSize /2), slot1.x + (solotSize /2) + slotSize);
  8. Vector2 slot3 = new Vector2(slot2.x + (solotSize /2), slot1.x + (solotSize /2) + slotSize);
  9.  
Advertisement
Add Comment
Please, Sign In to add comment