예제 #1
0
파일: UIManager.cs 프로젝트: kidundead/ow
 //! 构造
 public UIManager()
 {
     m_UIMesh       = null;
     m_SpriteCamera = null;
     m_UIHandler    = null;
     m_Controls     = new ArrayList();
 }
예제 #2
0
    private void InitializeSpriteCamera()
    {
        GameObject obj = new GameObject("SpriteCamera");

        obj.transform.parent = gameObject.transform;

        m_SpriteCamera = (SpriteCamera)obj.AddComponent(typeof(SpriteCamera));
        m_SpriteCamera.Initialize(LAYER);
        m_SpriteCamera.SetClear(true);
        m_SpriteCamera.SetDepth(0);
    }
예제 #3
0
파일: UIManager.cs 프로젝트: kidundead/ow
    private void InitializeSpriteCamera()
    {
        GameObject obj = new GameObject("SpriteCamera");

        obj.transform.parent = gameObject.transform;

        m_SpriteCamera = (SpriteCamera)obj.AddComponent(typeof(SpriteCamera));
        m_SpriteCamera.Initialize(LAYER);
        m_SpriteCamera.SetClear(CLEAR);
        m_SpriteCamera.SetDepth(DEPTH);
        m_SpriteCamera.SetViewport(new Rect(0, 0, Screen.width, Screen.height));
    }