Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 KB | None | 0 0
  1.             if (boundingBox.parentMob != parentMob)
  2.             {
  3.  
  4.                 if (boundingBox.parentMob.team == team) //if the teams are the same, we want to return IF...
  5.                 {
  6.                     if (team != Game.Team.None) { return; } //the team isn't none (none team hits other none team)
  7.                 }
  8.                
  9.                 if (type != Type.interactBox) //if the hitbox isn't an interactive box...
  10.                 {
  11.                     if (type == boundingBox.type) { return; } //return if the boxes are the same, since we don't need to check hitboxes on hitboxes, etc.
  12.                 }
  13.  
  14.                 if (ThisCollidesWith(boundingBox))
  15.                 {
  16.                    
  17.                 }
  18.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement