public void follow(GameObject obj, camera_follow_type type) { if (type == camera_follow_type.Rect) { dampTime = dampTime_scroll_rect; } if (type == camera_follow_type.Bullet) { dampTime = dampTime_bullet_follow; } target = obj; }
public void follow(GameObject obj, camera_follow_type type) { if (type == camera_follow_type.Rect) { dampTime = dampTime_scroll_rect; } if (type == camera_follow_type.Bullet) { dampTime = dampTime_bullet_follow; } target = obj; }