Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calculateStats()
- return { spin=1, zoom=2, rotate=3, dist=4 }
- end
- function foo:startup()
- self.initialState = calculateStats()
- end
- function calculateStats()
- return 1, 2, 3, 4
- end
- function foo:onRenderFrame()
- local spin, zoom, rotate, dist = calculateStats()
- end
- function foo:startup()
- local spin, zoom, rotate, dist = calculateStats()
- self.initialState = {spin=spin,zoom=zoom,rotate=rotate,dist=dist}
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement