Example #1
0
 /// <summary>
 /// Kills the Entity
 /// </summary>
 internal virtual void Kill()
 {
     // TODO - Kill the Entity
     currentEntityState = EntityState.Dead;
     rb.velocity        = Vector2.zero;
     rb.gravityScale    = GravityObject.GetNormalGravity();
     if (col != null)
     {
         col.isTrigger = true;
     }
     // TODO - Sound effect here
 }