Beispiel #1
0
        void Update()
        {
            lockedTarget = targetSystem.ScanForTarget(ControlledPlane.Weapons.SecondaryStats.Range, LockingTime);

            if (lockedTarget != null)
            {
                LockOnTarget.LockOn(lockedTarget);
            }
            else
            {
                LockOnTarget.Disengage();
            }
        }