Exemple #1
0
        public override BehaviourStatus Update()
        {
            if (!NodeOwner.GuardSight.CanSeeSpy())
            {
                return(BehaviourStatus.Failure);
            }

            NodeOwner.IsInvestigating = false;
            NodeOwner.StopAllCoroutines();
            NodeOwner.IsChasing = true;
            NodeOwner.WasNextInvestigationPointSet = false;

            return(BehaviourStatus.Success);
        }
Exemple #2
0
        public override BehaviourStatus Update()
        {
            if (!NodeOwner.GuardHearing.CanHearSpy() && !NodeOwner.WasGuardInformedAboutSpy)
            {
                return(BehaviourStatus.Failure);
            }

            NodeOwner.IsInvestigating = false;
            NodeOwner.StopAllCoroutines();
            NodeOwner.IsChasing = true;
            NodeOwner.WasNextInvestigationPointSet = false;
            NodeOwner.WasGuardInformedAboutSpy     = false;

            return(BehaviourStatus.Success);
        }