Slice the onion thinly.
Cut the tofu into cubes.
Heat cooking oil in a pan and stir-fry the onion.
When the onion becomes translucent, add the tofu and stir-fry together.
Add soy sauce and sugar, and keep stir-frying so the flavors absorb.
Place on a plate and serve.