//! 构造 public UIManager() { m_UIMesh = null; m_SpriteCamera = null; m_UIHandler = null; m_Controls = new ArrayList(); }
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); }
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)); }