Cut tofu, eggs, onion, and carrot into bite-sized pieces.
Heat cooking oil in a pan and stir-fry the onion and carrot.
Add the tofu and sauté over medium heat, lightly mashing it as you cook.
Beat the eggs and pour into the pan, mixing well with the other ingredients until cooked.
Add rice and stir-fry, mixing everything together.
Season with salt and pepper to taste.
Serve in a bowl and enjoy.