Remove the moisture from the tofu and cut it into small cubes.
Finely chop the onion, carrot, and green onion.
Heat cooking oil in a pan and sauté the tofu until golden brown.
Push the tofu to one side and add the chopped onion and carrot to stir-fry.
Add rice and stir-fry, mixing all the ingredients evenly.
Season with soy sauce, salt, and pepper.
Add the green onion and sesame oil, mix once more, and finish.