private void Start() { player = GameObject.FindWithTag("Player").GetComponent <PlayerMove>(); mane = GameObject.Find("GameManeger").GetComponent <GameManeger>(); wall = GameObject.Find("Door"); stateClass = (MainStateClass)mane.NowManager; }
// Start is called before the first frame update void Start() { collider = GetComponent <BoxCollider>(); size = collider.size; player = GameObject.FindWithTag("Player"); mane = GameObject.Find("GameManeger").GetComponent <GameManeger>(); _stateClass = (MainStateClass)mane.NowManager; nav = GetComponent <NavMeshAgent>(); anim = GetComponent <Animator>(); destime = 0f; audio_ = GetComponent <AudioSource>(); particle = transform.GetChild(19).GetComponent <ParticleSystem>(); //EnemyClassを作成する AnimationClass = new BaseAnimation(); }