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