Hi guys,
I'm fairly new to Unity, but i have worked with C# on a daily basis for almost a year now.
I have made a 2D game from the character motor in the Unity sample assets. It's been expanded with a double jump function, so the character can jump again if doubleJump is false.
I have platforms in 3 layers.
It works as intended until i jump and hit a platform above me - then it's like it sets doubleJump = true, but i have no idea why.
The platforms i spawn has Layer: Ground.
Can anyone please help me see what the problem is?
PlatformerCharacter2D: http://pastebin.com/vP350N3J
Platformer2DUserControl: http://pastebin.com/PPnS8qRg
Thanks
I'm fairly new to Unity, but i have worked with C# on a daily basis for almost a year now.
I have made a 2D game from the character motor in the Unity sample assets. It's been expanded with a double jump function, so the character can jump again if doubleJump is false.
I have platforms in 3 layers.
It works as intended until i jump and hit a platform above me - then it's like it sets doubleJump = true, but i have no idea why.
The platforms i spawn has Layer: Ground.
Can anyone please help me see what the problem is?
PlatformerCharacter2D: http://pastebin.com/vP350N3J
Platformer2DUserControl: http://pastebin.com/PPnS8qRg
Thanks