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