Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

SpawnPoint.cs triggers off of anything colliding with its trigger, not just the player #50

@ErikOverflow

Description

@ErikOverflow

Describe the bug
If something else passes through the a trigger that a SpawnPoint is listening to, enemies still start spawning.

Proposed Solution
Check the triggering GameObject (go) to see that it is the player. This should not be done using tags. Instead, check to see if the triggering GameObject has a component that only the player would have (Like PlayerLevel, or PlayerStatsSystem) and only start spawning if it exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions