コード例 #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();
            }
        }
コード例 #2
0
ファイル: ShotScript.cs プロジェクト: Gotsman2019/BBGun
 public void SetEnemyBaseScript(TacticalAI.BaseScript x)
 {
     myAIBaseScript = x;
 }