Press the tofu: Wrap the tofu in a towel and place a heavy object on top for 15-20 minutes.
Slice the tofu into 1/2-inch thick pieces or cubes.
Prepare the breading: Whisk the egg in one bowl, and mix panko, white sesame, and black sesame in another.
Coat the tofu: Dip each slice in egg, then coat with the sesame mixture.
Heat the oil in a large frying pan over medium-high heat.
Fry the tofu for 3-4 minutes on each side until golden brown.
Make the dipping sauce by mixing sugar, lime juice, fish sauce, garlic, and red pepper flakes in a bowl.
Serve the tofu hot, garnished with green onions and the dipping sauce.