using UnityEngine;
using System.Collections;

public class Throb : MonoBehaviour {
	public float rotChange = 0f;
	public float Rot = 0f;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		Rot = Rot + rotChange;
		GameObject.Find ("Main Camera").GetComponent<GameController> ().CamDist = 6 + (Mathf.Sin (Mathf.Deg2Rad * Rot)*0.5f);
	}
}
