Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
 }
}
 
PREVIOUS NEXT
Tagged: #ultimate #space #cruiser
ADD COMMENT
Topic
Name
2+2 =