コード例 #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));
 }