Skip to content

Implement git restore upgrade#33

Open
ambrosia13 wants to merge 1 commit into
mainfrom
git_restore_upgrade
Open

Implement git restore upgrade#33
ambrosia13 wants to merge 1 commit into
mainfrom
git_restore_upgrade

Conversation

@ambrosia13

Copy link
Copy Markdown
Collaborator

Adds N% of player max health to player health when going through a door (aka when leaving a room)

@Rockyd3 Rockyd3 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not getting this to heal the player when I go through a door.... It's also never printing the "Player entered a door" message for me so I'm not sure what's going on there.

Comment thread Assets/Scripts/Door.cs
if (other.tag == "Player")
{
SceneManager.LoadScene(room_name);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think all this needs to happen before the SceneManager.LoadScene line. I'm not positive, but I think that once it loads the next scene, it'll stop running this program.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I didn't know that. When I tested it worked for me, but I will make the adjustment when I can

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.

2 participants