TowerVR
1.0
|
Public Attributes | |
GameObject | triggerObject |
<This script fades a singel GameObject: Used for previewing a level.>
YOU DO NOT NEED TO ATTACH THIS SCRIPT MANUALLY: This script needs to be attached to all level components (children of an empty gameObject) that should be previewed. This is done with the loop marked with (x). The loop (x) should be in the Start()-function of the miniature level object (which is also the trigger object). This should now be placed in the GazeOverPreview script.
The miniature should also have a bool: "public bool isGazedOn" since this script is accessing it. isGazedOn should be set to true only if he miniature is being gazed on, otherwise it should be false.
GameObject ComponentPreviewer.triggerObject |