hch
2025-06-19 35f08360f1e07c7a8301f7b2031c0779e2998fb5
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;
        }
    }
}