private void FixedUpdate() { UnitMovement(); if (Time.time >= update_time && current_zone != null) { update_time = Time.time + 1f; target = current_zone.GetNearUnit(this, transform.localPosition); } }
private void FixedUpdate() { UnitMovement(); if (Time.time >= update_time && current_zone != null) { update_time = Time.time + 1f; target = current_zone.GetNearUnit(this, transform.localPosition); } }