21. Parameterization
● Unity allows to edit
parameters trough
editor
● Avoid magic-numbers
● Life easier for
Game/level designer
22. Singleton
● Unity loses all the state when loading new scenes
● This pattern allows an object to “jump” between scenes
● No more info losing in scene changes
● Very useful on application-level tasks
23. Time.deltaTime
● Avoids weird performance on low-end devices
● For all the tasks involving time-dependent increments
● Changes frame rate dependency to time dependency
24. Limit frame rate
● Not all situations need 60fps
● We can limit fps on certain scenarios (menus)
● Battery save
25. Concurrency control
● Not all tasks need to be processed every frame
● Time.timeSinceLevelLoad
● Reduces the Update method impact on performance
27. DrawCalls
● Everytime unity needs to draw a
mesh
● Batching: a DrawCall reducing
procedure
● Can be reduced recycling
materials
● “Stats” & Profiler
28. Image import
● Unity formats all imported
images
● Size and compression format
● Resources, always imported
29. Update()
Prohibited!
ArrayList
gameObject.transform
new Vector3(1,2,3);
Better...
Object[]
Local reference
class variable
30. Social Networks
● Must have
● Facebook, Google+, Game Center
● No G+ -> No Google Play feature
● No GC -> No AppStore feature
● No Fb -> No users (Shit happens)
● All: Rankings, achievements, requests,
personalization
● G+ i GC: save game
● G+: Multiplayer & Quests
● Official plug-ins from Fb & G+