private void Start() { agent = GetComponent <NavMeshAgent>(); Animator = GetComponent <Animator>(); BoxCollider = GetComponent <BoxCollider>(); if (null == state_AI) { state_AI = GetComponent <EnemyState_AI>(); } state_AI.SetOwner(this, EmotionEmitter_); state_AI.OnStart(); OnStart(); }
/// <summary> /// AIのステートを設定 /// </summary> /// <param name="state"></param> public void SetState(EnemyState_AI state) { state_AI = state; }