using UnityEngine;

public class Orthographic : MonoBehaviour 
{
	float offset = 0.0f;
	
	void Start()
	{		
		if(SystemInfo.graphicsDeviceVersion.ToLower().StartsWith("direct3d 9"))
		{
			offset = 0.5f;
		}
		
		camera.orthographic = true;
	}
	
	void Update()
	{
		camera.orthographicSize = Screen.height/2;	
		camera.transform.position = new Vector3(Screen.width/2 - offset, Screen.height/2 - offset, -1);	
	}
}
