instantiate different gameObjects alternatively

How can I instantiate different gameObjects alternatively whenever I use input. For example, shooting different kind of bullets.

you can make the script and write
var object01 : Transform;

var object02 : Transform;

then write the if statement n assign to instantiate object which u 1 2.