Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        m_moveContoroller = GetComponent <Movecontrore>();
        m_navMeshAgent    = GetComponent <UnityEngine.AI.NavMeshAgent>();
        //目標のムーブcontrollerを取得
        m_targetMoveController = m_traget.GetComponent <Movecontrore>();
        //巡回初期値
        agent = GetComponent <NavMeshAgent>();
        //速度を落とさない

        GotoNextPoint();

        ChangeActionType(ActionType.Patrol);
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     m_movecontrore = GetComponent <Movecontrore>();
 }