Finely chop the tofu, onion, carrot, and green onion.
Add cooking oil to a pan and stir-fry the onion and carrot.
Add the tofu and crumble it as you stir-fry together.
Add the rice and stir-fry until everything is evenly mixed.
Season with soy sauce, salt, and pepper.
Add the chopped green onion and finish stir-frying.
Serve the finished fried rice in a bowl.