コード例 #1
0
        public virtual void Initiate()
        {
            if (gameObject.GetComponent<ParagonAI.BaseScript>())
            {
                baseScript = gameObject.GetComponent<ParagonAI.BaseScript>();

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

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

                agent = baseScript.GetAgent();
            }
        }
コード例 #2
0
        public virtual void Initiate()
        {
            if (gameObject.GetComponent <ParagonAI.BaseScript>())
            {
                baseScript = gameObject.GetComponent <ParagonAI.BaseScript>();

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

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

                agent = baseScript.GetAgent();
            }
        }