示例#1
0
 protected override void IndestructableObjectCollision(IndestructableObject other, Collision2D collision)
 {
     Bounce(collision);
 }
示例#2
0
 protected override void IndestructableObjectCollision(IndestructableObject other, Collision2D collision)
 {
     DestroyThis();
 }
示例#3
0
 public void AddToGame(IndestructableObject add)
 {
     addIndestructables.Add(add);
 }
示例#4
0
 public void RemoveFromGame(IndestructableObject remove)
 {
     removeIndestructables.Add(remove);
 }
示例#5
0
 protected override void IndestructableObjectCollision(IndestructableObject other)
 {
 }
 protected abstract void IndestructableObjectCollision(IndestructableObject other);
示例#7
0
 protected override void IndestructableObjectCollision(IndestructableObject other, Collision2D collision)
 {
     //push the other away from this, as fast as it can go
     other.velocity = -collision.relativeVelocity.normalized * other.maxSpeed;
 }