예제 #1
0
        public virtual void Initiate()
        {
            if (gameObject.GetComponent <TacticalAI.BaseScript>())
            {
                baseScript = gameObject.GetComponent <TacticalAI.BaseScript>();

                gunScript            = baseScript.gunScript;
                soundScript          = baseScript.audioScript;
                rotateToAimGunScript = baseScript.headLookScript;
                animationScript      = baseScript.animationScript;
                coverFinderScript    = baseScript.coverFinderScript;
                myTransform          = baseScript.GetTranform();

                layerMask = TacticalAI.ControllerScript.currentController.GetLayerMask();

                navI = baseScript.GetAgent();
            }
        }