Tanks Multiplayer  1.4
Public Member Functions | Public Attributes | List of all members
CollectibleZone

Component that acts as an area to trigger collection of CollectibleTeam items. E.g. necessary for team bases in Capture The Flag mode. Needs a Collider to trigger. More...

Inheritance diagram for CollectibleZone:

Public Member Functions

void OnTriggerEnter (Collider col)
 Server only: check for collectibles colliding with the zone. Possible collision are defined in the Physics Matrix. More...
 

Public Attributes

int teamIndex = 0
 Team index this zone belongs to. Teams are defined in the GameManager script inspector. More...
 
ObjectSpawner requireObject
 Optional: Other Collectible, that needs to be at its spawn position for this zone to trigger a successful collection. One example would be for Capture The Flag, where the red flags needs to be at the red spawn, in order to successfully collect the blue flag. More...
 
AudioClip scoreClip
 Clip to play when a CollectibleTeam item is brought to this zone. More...
 

Detailed Description

Component that acts as an area to trigger collection of CollectibleTeam items. E.g. necessary for team bases in Capture The Flag mode. Needs a Collider to trigger.

Member Function Documentation

void OnTriggerEnter ( Collider  col)

Server only: check for collectibles colliding with the zone. Possible collision are defined in the Physics Matrix.

Member Data Documentation

ObjectSpawner requireObject

Optional: Other Collectible, that needs to be at its spawn position for this zone to trigger a successful collection. One example would be for Capture The Flag, where the red flags needs to be at the red spawn, in order to successfully collect the blue flag.

AudioClip scoreClip

Clip to play when a CollectibleTeam item is brought to this zone.

int teamIndex = 0

Team index this zone belongs to. Teams are defined in the GameManager script inspector.


The documentation for this class was generated from the following file: