Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package and city marker clean-up #62

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Pattrigue
Copy link
Contributor

This is related to issue #35.
I implemented a primitive system that destroys the previous package and city marker when a new package is dropped to prevent more and more GameObjects from building up over time (my poor memory!).

I moved the packageDropped event from the player into the quest system since it was unused anyway, and also the quest system is responsible for package dropping, not the player.

If this causes merge conflicts, you could discard the change I made to the Game.unity scene since you just have to attach the PackageCleanup component to the Quest System GameObject for the clean-up system to work.

A possible extra detail/improvement could be old packages and city markers fading out before getting destroyed.

@Pattrigue Pattrigue changed the title Package cleanup Package and city marker clean-up May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant