Next: , Previous: , Up: Interaction   [Contents][Index]


9.6 Deployed Object

Component: DeployedObject

This component must be added to objects being deployed using the ’Deployer’ system. See accompanying documentation (found in this folder) for more information on using the awesome ’Deployer’ functionality. Does not work with object pooling, and will destroy itself when undeployed so don’t allow the player to deploy and undeploy every frame on mobile devices!

Field of DeployedObject: GameObject deathPrefab

Object to spawn if killed

Message on DeployedObject: Undeploy ()

Destroys this object and replaces it with the ’Undeployed’ prefab, useful for allowing the player to pick it back up

Message on DeployedObject: Destruct ()

Destroys this object and replaces it with the ’Death Prefab’ useful if you want to kill this object directly

Field of DeployedObject: GameObject deathPrefab

Object to spawn if killed

Message on DeployedObject: Undeploy ()

Destroys this object and replaces it with the ’Undeployed’ prefab, useful for allowing the player to pick it back up

Message on DeployedObject: Destruct ()

Destroys this object and replaces it with the ’Death Prefab’ useful if you want to kill this object directly