﻿using UnityEngine;
using System.Collections;

public class Portal_Script : MonoBehaviour {

    Vector3 teleportPosition = new Vector3(25.635f, 1.043f, -21.051f);
    Vector3 teleportRotation = new Vector3(9.755f, -41.362f, 0);

    void OnTriggerEnter(Collider other)
    {
        if (other.tag == "MainCamera")
        {
            other.transform.position = teleportPosition;
            other.transform.rotation = Quaternion.Euler(teleportRotation);
            GameObject.Find("Kitty").GetComponent<movement_controller>().UpdateRotation();
        }
    }
}
