void Start() { Stage5Pos = FindObjectOfType <StagePosition>().GetComponent <StagePosition>(); ObjLife = GetComponent <ObjectLife>(); ani = GetComponent <Animator>(); NCommand = GetComponent <NatureCommand>(); BCommand = GetComponent <BattleCommand>(); Player = GameObject.FindWithTag("Player").GetComponent <Transform>(); //가져와서 적용해야 할 부분 msg = new MoveMsg(); //가져와서 적용해야 할 부분 Battle = new Queue(); Peace = new Queue(); for (int i = 0; i < BasicPeace.Length; ++i) { Peace.Enqueue(BasicPeace [i]); } for (int i = 0; i < BasicBattle.Length; ++i) { Battle.Enqueue(BasicBattle [i]); } //while (Peace.Count > 0) { // Debug.Log (Peace.Dequeue ()); //} StartCoroutine("AISearching"); }