ultimate space cruiser code example
Example: ultimate space cruiser
void ShootMissile()//This is pretty much how I did the missiles for the game :)
{
if(missileTimer <= 0)
{
Instantiate(missile, missileSpawn.position, missileSpawn.rotation);
missileTimer = 5f;
}
}