Example #1
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     this.life--;
     if (life <= 0)
     {
         IsDestroyed = true;
     }
 }
Example #2
0
 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;
 }
Example #4
0
 public virtual void RespondToCollision(CollisionData collisionData)
 {
 }