void Start() { my_rigid_body = GetComponent <Rigidbody2D>(); the_dm = FindObjectOfType <Dialogue_manager>(); wait_counter = wait_time; walk_counter = walk_time; choose_Direction(); if (walk_zone != null) { min_walk_point = walk_zone.bounds.min; max_walk_point = walk_zone.bounds.max; has_walk_zone = true; } can_move = true; }
// Start is called before the first frame update void Start() { d_man = FindObjectOfType <Dialogue_manager>(); }