Exemplo n.º 1
0
 private void FixedUpdate()
 {
     age += Time.fixedDeltaTime;
     if (age >= fireDelay && shouldFire && currentMissileCount > 0)
     {
         equipmentSlot.FireMissile();
         currentMissileCount--;
         age = 0;
     }
 }