void Start()
    {
        MobSound = GetComponentInChildren <MonsterSoundSetting>();
        MobSound.PlaySound(0);
        Time_Nature_Move = getRandom(1, 5);
        Time_Battle_Move = getRandom(1, 5);
        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");
    }
Esempio n. 2
0
    void Start()
    {
        MobSound = GetComponentInChildren <MonsterSoundSetting>();
        GameObject temp = FindObjectOfType <PlayerState>().gameObject;

        Player  = temp.GetComponent <PlayerState>();
        MobInfo = GetComponentInChildren <ObjectLife>();
        ani     = GetComponent <Animator>();
        agent   = GetComponent <NavMeshAgent>();
    }
 private void Start()
 {
     MobSound = GetComponentInChildren <MonsterSoundSetting>();
 }