AirdropVehicle
Updated a year agoAirdropVehicle
This documentation provides an explanation of the code for the AirdropVehicle
class. The AirdropVehicle
class is responsible for spawning and controlling an airdrop vehicle in a virtual reality game environment.
Class Structure
The AirdropVehicle
class is a MonoBehaviour
that inherits from the Unity class MonoBehaviour
. It is defined within the AndrewFTW
namespace.
Public Fields
DropSpawnPt (Transform)
: The spawn point for airdrop deliveries.DestructableComponent (GameObject)
: The destructible component of the airdrop vehicle.DeliveryVoiceObj (GameObject)
: The voice object for delivery.
Public Methods
Update()
: Updates the state of the airdrop vehicle. If theDestructableComponent
is null, setsDestructableDestroyed
totrue
.ActivateVoice()
: Activates the delivery voice object.