Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function calculateStats()
  2. return { spin=1, zoom=2, rotate=3, dist=4 }
  3. end
  4.  
  5. function foo:startup()
  6. self.initialState = calculateStats()
  7. end
  8.  
  9. function calculateStats()
  10. return 1, 2, 3, 4
  11. end
  12.  
  13. function foo:onRenderFrame()
  14. local spin, zoom, rotate, dist = calculateStats()
  15. end
  16.  
  17. function foo:startup()
  18. local spin, zoom, rotate, dist = calculateStats()
  19. self.initialState = {spin=spin,zoom=zoom,rotate=rotate,dist=dist}
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement