Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (boundingBox.parentMob != parentMob)
- {
- if (boundingBox.parentMob.team == team) //if the teams are the same, we want to return IF...
- {
- if (team != Game.Team.None) { return; } //the team isn't none (none team hits other none team)
- }
- if (type != Type.interactBox) //if the hitbox isn't an interactive box...
- {
- if (type == boundingBox.type) { return; } //return if the boxes are the same, since we don't need to check hitboxes on hitboxes, etc.
- }
- if (ThisCollidesWith(boundingBox))
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement