hch
9 天以前 27fcdab4830ef0791105be6529a1dfac36b85982
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using UnityEngine;
using System.Collections;
 
 
public class CameraManager
{
    /// <summary>
    /// UI Camera 
    /// </summary>
    private static Camera m_UICamera = null;
    public static Camera uiCamera
    {
        get
        {
            if (null == m_UICamera)
            {
                m_UICamera = GameObject.Find("UICamera").GetComponent<Camera>();
            }
            return m_UICamera;
        }
    }
}