Example #1
0
 private void SetDisableCollision(CollisionShape2D collision, bool disable)
 {
     collision.Disabled = disable;
     if (collision.Disabled)
     {
         collision.Hide();
     }
     else
     {
         collision.Show();
     }
 }