![]() | SetCallback_Example Class |
Namespace: SimpleDemos
The SetCallback_Example type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | SetCallback_Example | |
![]() | SetCallback_Example | Initializes a new instance of the SetCallback_Example class |
Name | Description | |
---|---|---|
![]() ![]() | CubeCreatedCallback | InstantiateASLObject function's callback |
![]() | EndOfDeletionCallback | OpFunction's callback : DeleteObject
To add the very last existing position to the set,
and to check if all objcest in the current iteration have finished the process (been deleted),
If yes, spawns a new set of objects with the new settings.
|
![]() | EndOfMovementCallback | OpFunction's callback : IncrementLocalPosition
To delete the given object
|
![]() | SetSettings | Generates a new set of settings with the given ranges. |
![]() | SpawnObjects | Spawns a specific amount of objects(cubes) within specific positions.
If spawning the very first set of objects, the positions are fixed,
Otherwise, the positions where spawning objects are read from m_CurrentDeletionPositions and plus randomness.
|
![]() | Start | Game Logic |
![]() | Update | Updates cubes' movement in the dictionary
If a cube reaches its moving time limit, it will be deleted by the OpFunction callback,
Otherwise, keep moving.
|
Name | Description | |
---|---|---|
![]() | _shouldRun | Boolean value for determining if a new set of cubes should be spawned. |
![]() | _shouldSpawn | Boolean value for determining if a new set of cubes should be spawned. |
![]() | m_CurrentAdditiveMovementAmount | Value for the addtive movement amount for this current iteration. |
![]() | m_CurrentCount | Value for number of the iterations have done. |
![]() | m_CurrentDeletionPositions | Set for storing a cube's last existing position when it is deleted. |
![]() | m_CurrentRunningLengthInSecond | Value for the running length in second for this current iteration. |
![]() | m_MaxAdditiveMovementAmount | Pre-derfined max value for movement. |
![]() | m_MaxRunningLengthInSecond | Pre-derfined max value for a cube to be deleted after this amount of moving time. |
![]() | m_MinAdditiveMovementAmount | Pre-derfined min value for movement. |
![]() | m_MinRunningLengthInSecond | Pre-derfined min value for a cube to be deleted after this amount of moving time. |
![]() ![]() | m_MyCubesAndTimerDictionary | Dictinary for storing cubes and its moving time |
![]() | m_NumOfCubes | Pre-defined value for how many cubes to create. |
![]() | m_RepeatTimes | Pre-defined value for number of iterations for the process (create-move-delete). |