Exemplo n.º 1
0
 private void AttemptMissileFire()
 {
     if (missiles < 0)
     {
         return;                 //If no missiles then don't fire
     }
     //Spawn missile
     //Update scoreboard
     missiles--;
     scoreBoard.ChangeMissiles(missiles);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     guns       = transform.GetComponentsInChildren <ParticleSystem>();
     scoreBoard = FindObjectOfType <ScoreBoard>();
     scoreBoard.ChangeMissiles(missiles);
 }