コード例 #1
0
    void Start()
    {
        player = GameObject.FindGameObjectWithTag(Tags.player);
        agent  = player.GetComponent <UnityEngine.AI.NavMeshAgent>();

        gba   = player.GetComponent <BasicGBA>();
        sbgba = player.GetComponent <StateBasedGBA>();
        mbgba = player.GetComponent <MemoryBasedGBA>();
        ebgba = player.GetComponent <ExplorationBasedGBA>();
        uba   = player.GetComponent <UBA>();
    }
コード例 #2
0
    void Start()
    {
        player = GameObject.FindGameObjectWithTag (Tags.player);
        agent = player.GetComponent<UnityEngine.AI.NavMeshAgent>();

        gba = player.GetComponent<BasicGBA>();
        sbgba = player.GetComponent<StateBasedGBA>();
        mbgba = player.GetComponent<MemoryBasedGBA>();
        ebgba = player.GetComponent<ExplorationBasedGBA>();
        uba = player.GetComponent<UBA>();
    }