// Use this for initialization
    void Start()
    {
        _move = GetComponent <CharacterController>();
        _map.RegisterPropagator(this);
        _map.GetMovementLimits(out _bottomLeft, out _topRight);

        InvokeRepeating("ChooseNewDestination", 0.001f, 3.0f);
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        //_move = GetComponent<CharacterController>();
        //print(GameObject.FindGameObjectWithTag("InfluenceMapControl"));
        _map = GameObject.FindGameObjectWithTag("InfluenceMapControl").GetComponent <InfluenceMapControl>();
        _map.RegisterPropagator(this);
        _map.GetMovementLimits(out _bottomLeft, out _topRight);

        //InvokeRepeating("ChooseNewDestination", 0.001f, 3.0f);
    }