Tanks Multiplayer
1.4
|
Custom powerup implementation for adding player shield points. More...
Public Member Functions | |
override bool | Apply (Player p) |
Overrides the default behavior with a custom implementation. Check for the current shield and adds additional shield points. More... | |
![]() | |
override void | OnStartClient () |
Get component references once the network is initialized. More... | |
virtual void | OnTriggerEnter (Collider col) |
Server only: check for players colliding with this item. Possible collision are defined in the Physics Matrix. More... | |
virtual void | OnPickup () |
Virtual implementation called when this Collectible gets picked up. This is called for CollectionType = Pickup items only. More... | |
virtual void | OnDrop () |
Virtual implementation called when this Collectible gets dropped on player death. This is called for CollectionType = Pickup items only. More... | |
virtual void | OnReturn () |
Virtual implementation called when this Collectible gets returned. This is called for CollectionType = Pickup items only. More... | |
Public Attributes | |
int | amount = 3 |
Amount of shield points to add per consumption. More... | |
![]() | |
NetworkInstanceId | parentId |
Network reference to the object that spawned this item in the scene. Used for access to the ObjectSpawner parent in OnDespawn(). More... | |
AudioClip | useClip |
Clip to play when this Collectible is consumed by a player. More... | |
NetworkInstanceId | carrierId |
Persistent network ID of the Player that picked up this Collectible. More... | |
ObjectSpawner | spawner |
Reference to the local object (script) that spawned this Collectible. More... | |
Custom powerup implementation for adding player shield points.
|
virtual |
Overrides the default behavior with a custom implementation. Check for the current shield and adds additional shield points.
Reimplemented from Collectible.
int amount = 3 |
Amount of shield points to add per consumption.