📜  终极太空巡洋舰 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:46.733000             🧑  作者: Mango

代码示例1
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;
 }
}