Пример #1
0
        ///////////////////
        // MonoBehaviour //
        ///////////////////

        protected override void Awake()
        {
            base.Awake();
            m_HoloLensInput = GetComponent <HoloLensInput>();
            if (!m_HoloLensInput)
            {
                m_HoloLensInput = gameObject.AddComponent <HoloLensInput>();
            }
            m_InputOverride = m_HoloLensInput;
        }
 protected override void Awake()
 {
     base.Awake();
     this.m_HoloLensInput = base.GetComponent <HoloLensInput>();
     if (this.m_HoloLensInput == null)
     {
         this.m_HoloLensInput = base.gameObject.AddComponent <HoloLensInput>();
     }
     base.m_InputOverride = this.m_HoloLensInput;
 }