Search Results for

    Show / Hide Table of Contents

    Class RespawnOnTriggerEnter

    This class handles respawning objects when they collide with a trigger tagged with a specific value.

    Inheritance
    object
    RespawnOnTriggerEnter
    Namespace: Game
    Assembly: cs.temp.dll.dll
    Syntax
    public class RespawnOnTriggerEnter : MonoBehaviour

    Fields

    respawnTag

    The tag of the trigger that causes the object to respawn.

    Declaration
    public string respawnTag
    Field Value
    Type Description
    string

    spawnPoint

    The spawn point where the object will respawn.

    Declaration
    public Vector2 spawnPoint
    Field Value
    Type Description
    Vector2

    spawnPointIsInitialPosition

    If true, the spawn point is set to the object's initial position.

    Declaration
    public bool spawnPointIsInitialPosition
    Field Value
    Type Description
    bool
    In This Article
    Back to top Example Unity documentation footer