void Update() { lockedTarget = targetSystem.ScanForTarget(ControlledPlane.Weapons.SecondaryStats.Range, LockingTime); if (lockedTarget != null) { LockOnTarget.LockOn(lockedTarget); } else { LockOnTarget.Disengage(); } }