using UnityEngine; using System.Collections; public class CameraManager { /// /// UI Camera /// private static Camera m_UICamera = null; public static Camera uiCamera { get { if (null == m_UICamera) { m_UICamera = GameObject.Find("UICamera").GetComponent(); } return m_UICamera; } } }