Example #1
0
 void SetActiveTurret(int num)
 {
     if(activeTurret)
         activeTurret.DeactivateTurret();
     if (num != -1)
     {
         activeTurret = turrets[num - 1];
         activeTurret.ActivateTurret();
         activeNum = num - 1;
     }
     else
     {
         activeNum = -1;
     }
 }
Example #2
0
 void SetActiveTurret(int num)
 {
     if (activeTurret)
     {
         activeTurret.DeactivateTurret();
     }
     if (num != -1)
     {
         activeTurret = turrets[num - 1];
         activeTurret.ActivateTurret();
         activeNum = num - 1;
     }
     else
     {
         activeNum = -1;
     }
 }