private bool dontGetNextPoint;             //when really need to go to a point set to true;

    /**************************************************************************************************/

    public void Start()
    {
        bound = GetComponent <Collider2D>().bounds;     //get collider bounds
        myBounds.SetMyBounds(bound);                    //turn it into my lazy bounds

        //initialize some things
        points          = new List <Vector3>();
        point           = transform.position;
        waypoints       = new Vector3[0];
        waypointPointer = 0;

        if (jumpHeight == 0)
        {
            jumpHeight = searchDistance;
        }
    }
Beispiel #2
0
    private bool dontGetNextPoint;             //when really need to go to a point set to true;

    /**************************************************************************************************/

    public void Start()
    {
        bound = GetComponent <Collider2D>().bounds;     //get collider bounds
        myBounds.SetMyBounds(bound);                    //turn it into my lazy bounds

        //Get Player Dynamically
        playerPosition = GameObject.Find("Character").GetComponent <Transform>();

        //initialize some things
        points          = new List <Vector3>();
        point           = transform.position;
        waypoints       = new Vector3[0];
        waypointPointer = 0;

        if (jumpHeight == 0)
        {
            jumpHeight = searchDistance;
        }
    }