Пример #1
0
 private void Update()
 {
     if (shooting.IsReadyToAttack())
     {
         ShootAtAll();
     }
 }
Пример #2
0
    private void Update()
    {
        if (shooting.IsReadyToAttack())
        {
            SetLockedOnTarget();

            if (lockedOnTarget)
            {
                shooting.Shoot(lockedOnTarget);
                shooting.lastAttack = Time.time;
            }
        }
    }