Exemple #1
0
 protected override void IndestructableObjectCollision(IndestructableObject other, Collision2D collision)
 {
     Bounce(collision);
 }
Exemple #2
0
 protected override void IndestructableObjectCollision(IndestructableObject other, Collision2D collision)
 {
     DestroyThis();
 }
Exemple #3
0
 public void AddToGame(IndestructableObject add)
 {
     addIndestructables.Add(add);
 }
Exemple #4
0
 public void RemoveFromGame(IndestructableObject remove)
 {
     removeIndestructables.Add(remove);
 }
Exemple #5
0
 protected override void IndestructableObjectCollision(IndestructableObject other)
 {
 }
 protected abstract void IndestructableObjectCollision(IndestructableObject other);
Exemple #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;
 }