private void Update() { if (shooting.IsReadyToAttack()) { ShootAtAll(); } }
private void Update() { if (shooting.IsReadyToAttack()) { SetLockedOnTarget(); if (lockedOnTarget) { shooting.Shoot(lockedOnTarget); shooting.lastAttack = Time.time; } } }