Exemplo n.º 1
0
        private void Awake()
        {
            // added by jeff
            // this looks to see if a camera is attached to this transform to use automatically
            if (GetComponent <Camera>())
            {
                m_Camera = GetComponent <Transform>();
            }

            // this looks to see if a reticle script is attached to this transform to use automatically
            if (GetComponent <Reticle>())
            {
                m_Reticle = GetComponent <Reticle>();
            }
        }