public override void RespondToCollision(CollisionData collisionData) { this.life--; if (life <= 0) { IsDestroyed = true; } }
public override void RespondToCollision(CollisionData collisionData) { if (collisionData.hitObjectsCollisionGroupStrings.Contains(Gift.CollisionGroupString)) { this.life++; } else { base.RespondToCollision(collisionData); } }
public override void RespondToCollision(CollisionData collisionData) { this.IsDestroyed = true; }
public virtual void RespondToCollision(CollisionData collisionData) { }