Skip to content
Hesk edited this page Jan 6, 2015 · 4 revisions

##Welcome to the unity-interview wiki!

##Map Cubes are generated randomly within the map however, each cube should not be overlapped since they should be presented fairly on the plane.

##Scoring Adding score in the counter on the current game is developed with a cube based event trigger. for each collider invoked from the cube, the cube will pass the cube id and the cube type into the score counter object. Id can be retrieved from the hashcode of the object in the game scene and the cube type is pointed back to the index of the cube array setup. In the score counter, there is a method to process the input from the collider event. The process will watch for the cube type rather it is red or blue. For each same type of cube from the input, the streak will add up. The score increment equation is x=cube hit point * streak.

The source code of the detail can be retrieve from this link

Demo app is developed and you can download it from

Development tools:

Clone this wiki locally