⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    ShieldPickup MonoBehaviour

    Overview

    The ShieldPickup behaviour is used to restore broken shield steps to a ShieldManager.

    Inspector

    ShieldPickup

    Properties

    Name Type Description
    Step Count Integer The number of shield steps to recharge.
    On Shields Recharged UnityEvent An event called when the pickup heals a character.
    Single Use Boolean If the character needs less recharging than the pickup amount, should the pickup still be destroyed or should the remainder be available to use again?
    Consume Result Dropdown What to do to the pickup object once its item has been used (fully, or single use). Options are Destroy to destroy the whole object, Disable to disable the render mesh and trigger so it can be reset later, and Respawn to disable and the reset automatically after a brief wait.
    Respawn Duration Float How long to wait before respawning if the consume result is set to Respawn.
    Display Mesh GameObject The display mesh of the pickup. This should not be the same game object as this, so that if this is disabled the pickup will still respawn if required.

    See Also

    Health and Damage

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX