📅  最后修改于: 2022-03-11 14:48:46.733000             🧑  作者: Mango
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;
}
}