コード例 #1
0
ファイル: CopPatrol.cs プロジェクト: FerCalde/Scrip3Final2021
 private void Awake()
 {
     agente     = transform.GetComponent <UnityEngine.AI.NavMeshAgent>();
     miAnim     = GetComponent <Animator>();
     refEnemigo = GetComponent <CopEnemy>();
     Animaciones();
 }
コード例 #2
0
 //// Start is called before the first frame update
 void Start()
 {
     refStateManager  = GetComponent <StateMachine>();
     refEnemigo       = GetComponent <CopEnemy>();
     agente           = transform.GetComponent <UnityEngine.AI.NavMeshAgent>();
     playerRef        = FindObjectOfType <Mov>();
     miAnim           = GetComponent <Animator>();
     agente.isStopped = true;
     Animaciones();
 }