using UnityEngine;
using System.Collections;

public class CameraInitializer : MonoBehaviour {

	[SerializeField]
	Transform background;

	// Use this for initialization
	void Start () {
		//camera.orthographicSize = 0.5f * (5.12f * (768f / Screen.width));
		//camera.orthographicSize = 0.5f * (10.24f / camera.aspect); 
		float originalOrthographicSize = camera.orthographicSize;
		camera.orthographicSize = 7.68f/Screen.width * Screen.height/2;
		float yAmountToMove = camera.orthographicSize - originalOrthographicSize;
		background.Translate(new Vector3(0, -yAmountToMove, 0));

	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
