Cut the tofu into bite-sized pieces.
Julienne the onion, carrot, and green onion.
Heat cooking oil in a pan and grill the tofu until golden brown.
Remove the grilled tofu and set aside on a plate.
Add cooking oil to the pan again and stir-fry the onion and carrot.
Add soy sauce, sugar, minced garlic, and water to make the sauce.
Put the tofu into the sauce and stir-fry together.
Add green onion and stir-fry briefly.
Place rice in a bowl and top with the stir-fried tofu mixture.