示例#1
0
        protected void Awake()
        {
            // Save a reference to the instance
            m_Mgr = this;

            // Get a camera if not set
            if (this.m_Camera == null)
            {
                this.m_Camera = Camera.main;
            }
        }
        protected void Awake()
        {
            // Save a reference to the instance
            m_Mgr = this;

            // Get a camera if not set
            if (this.m_Camera == null)
            {
                this.m_Camera = Camera.main;
            }

            // Disable the info container
            if (this.m_InfoContainer != null)
            {
                this.m_InfoContainer.SetActive(false);
            }
        }
 protected void OnDestroy()
 {
     m_Mgr = null;
 }