Exemple #1
0
        //Switch all components to an engaging state
        public void StartEngage()
        {
            //print("HEY!");
            if (animationScript)
            {
                animationScript.SetEngaging();
            }

            if (audioScript)
            {
                audioScript.PlaySpottedAudio();
            }

            engaging = true;

            if (canOverrideBehaviour)
            {
                SetBehaviour();
            }

            if (navI)
            {
                navI.SetSpeed(runSpeed);
            }

            if (!usingDynamicObject && !isMeleeing)
            {
                headLookScript.Activate();
            }
        }