Warping the Camera (SOLVED)

When I warp to a new position, how can I get the camera to move to a specific location instead of the actual warpTarget?

using UnityEngine;
using System.Collections;

public class warp : MonoBehaviour {

    public Transform warpTarget;

    void OnTriggerEnter2D(Collider2D other){

        Debug.Log ("wopping");
        other.gameObject.transform.position = warpTarget.position;
        Camera.main.transform.position = warpTarget.position + new Vector3 (0,0,-10);
}
}

Fine for games that focus the camera on the player, but my RPG camera should be focused on the map…

There is a youtube tutorial that shows how to Warp between “levels” without adding new scenes using this code…

Make a second variable next to warpTarget (cameraTarget?) and set the camera’s position to that, instead?

This worked… Thanks!

using UnityEngine;
using System.Collections;

public class warp : MonoBehaviour {

    public Transform warpTarget, cameraTarget;

    void OnTriggerEnter2D(Collider2D other){

        Debug.Log ("wopping");
        other.gameObject.transform.position = warpTarget.position;
        Camera.main.transform.position = cameraTarget.position + new Vector3 (0,0,-10);
}
}