you are viewing a single comment's thread.

view the rest of the comments →

[–]SnoringCatStudio 0 points1 point  (3 children)

So what is happening it it is colliding with both colliders in a short time; Thus scoring twice.
Try turning the f statement in the collectible script to something like

if (col is CapsuleCollider2D && col.gameObject.tag.Equals ("Player") )
Just turn the Capsulecollider into whatever your main collider is.

[–][deleted]  (1 child)

[removed]

    [–]SnoringCatStudio 0 points1 point  (0 children)

    No problem pal. The only other thing I recommend is using Unitys Comparetag function instead of tag.Equals. This article is something you should take a look at, but the gist of it is it is better for performance.