Drain the water from the tofu and crumble it finely.
Finely chop the carrot and onion.
Heat oil in a pan and stir-fry the tofu.
Add the vegetables and stir-fry together.
Add rice and season with salt and pepper.
Stir everything together and cook until done.