Свойство | Type | Description | |
---|---|---|---|
destinationWarpPad | GameObject | ||
onEffect | ParticleSystem | ||
planetBosses | GameObject[] | ||
shakeIntensity | float | ||
transportDelaySeconds | float | ||
warpToPlanetName | string |
Méthode | Description | |
---|---|---|
ActivateTeleport ( ) : void |
Plays the particle effect
|
|
DeactivateTeleport ( ) : void |
Stops the particle effect
|
|
DisableBosses ( ) : void | ||
EnableBosses ( ) : void | ||
OnApplicationQuit ( ) : void |
Unsubscribe the events!
|
|
OnDestroy ( ) : void | ||
OnTriggerStay ( Collider collider ) : void |
When the player stays within the collider, call this to teleport the player
|
|
Start ( ) : void |
Subscribe to activate and deactivate, and initialize the particle effect
|
Méthode | Description | |
---|---|---|
TransportAfterTime ( ) : IEnumerator |
Delays for transportDelaySeconds then moves the player and re-enables the ForceMover script
|
public OnTriggerStay ( Collider collider ) : void | ||
collider | Collider | The object that entered the trigger |
Résultat | void |