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

Can't register prefab after the player patch #356

Open
Bricklou opened this issue May 20, 2023 · 0 comments
Open

Can't register prefab after the player patch #356

Bricklou opened this issue May 20, 2023 · 0 comments

Comments

@Bricklou
Copy link

Describe the bug
When registering a prefab after the player patch, the item doesn't show properly in the PDA techs:

  • when loading a save just after the game start, the prefab show up even i the tech isn't unlocked
  • when loading a save for the second time after the game start, the prefab doesn't show up in the PDA and then it works fine

To Reproduce
Steps to reproduce the behavior:

  1. Create a prefab with a condition to unlock it.
  2. Add a coroutine waiting for the player.
  3. Register the prefab inside this coroutine.
  4. Start the game with a new save.
  5. Open the PDA and see the item already unlocked.

Expected behavior
The tech should show up only when the tech type is unlocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants