예제 #1
0
 public override void OnCollision(Actors other)
 {
     throw new NotImplementedException();
 }
예제 #2
0
파일: Actors.cs 프로젝트: volheim/Piperlok
 //This method is called whenever a collision happens
 public abstract void OnCollision(Actors other);
예제 #3
0
 public override void OnCollision(Actors other)
 {
 }
예제 #4
0
파일: Actors.cs 프로젝트: volheim/Piperlok
 //Returns true, if the GameObject is colliding with the other GameObject
 //Uses intersectswith to determine if a collision is taking place
 public bool IsCollidingWith(Actors other)
 {
     return(CollisionBox.IntersectsWith(other.CollisionBox));
 }