Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        myRigidbody = GetComponent <Rigidbody2D>();
        theDM       = FindObjectOfType <gpjDialogueManager>();

        waitCounter = waitTime;
        walkCounter = walkTime;

        ChooseDirection();


        if (walkZone != null)
        {
            minWalkPoint = walkZone.bounds.min;
            maxWalkPoint = walkZone.bounds.max;
            hasWalkZone  = true;
        }

        canMove = true;
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     dMan = FindObjectOfType <gpjDialogueManager>();
 }