using UnityEngine; using System.Collections; public class BossCameraScript : MonoBehaviour { public GameObject Camera; bool BossCamEnabled; // Use this for initialization void Start () { } // Update is called once per frame void FixedUpdate () { if (BossCamEnabled) Camera.transform.position = new Vector3(Mathf.Lerp(Camera.transform.position.x,135.5f,.2f), 10.8f,-10); } public void EnableBossCamera() { Camera.GetComponent().enabled = false; BossCamEnabled = true; } public void DisableBossCamera() { BossCamEnabled = false; Camera.GetComponent().enabled = true; } }