private void Awake()
        {
            m_editor = IOC.Resolve <IRTE>();
            if (m_editor == null)
            {
                Debug.LogError("RTE is null");
            }

            IOC.RegisterFallback <ISpriteGizmoManager>(this);
            AwakeOverride();
        }
 private static void Init()
 {
     Debug.Log("RTE Initialized");
     IOC.RegisterFallback <IRTE>(() =>
     {
         if (m_instance == null)
         {
             GameObject editor = new GameObject("RTE");
             editor.AddComponent <RTEBase>();
             m_instance.BuildUp(editor);
         }
         return(m_instance);
     });
 }
Beispiel #3
0
        protected override void AwakeOverride()
        {
            base.AwakeOverride();
            m_nullDevice         = gameObject.AddComponent <VRInputDevice>();
            m_nullDevice.enabled = false;

            m_leftHand  = m_nullDevice;
            m_rightHand = m_nullDevice;

            IOC.RegisterFallback <IVRTracker>(this);

            InputTracking.trackingAcquired += OnTrackingAquired;
            InputTracking.trackingLost     += OnTrackingLost;
        }
 private void Awake()
 {
     IOC.RegisterFallback <IRTEState>(this);
     m_editor = (RTEBase)FindObjectOfType(m_editorPrefab.GetType());
     if (m_editor != null)
     {
         if (m_editor.IsOpened)
         {
             m_editor.IsOpenedChanged += OnIsOpenedChanged;
             gameObject.SetActive(false);
         }
     }
     m_createEditorButton.onClick.AddListener(OnOpen);
 }
 private void Awake()
 {
     IOC.RegisterFallback <IRTEGraphics>(this);
 }
 public static void Init()
 {
     Debug.Log("RTE Initialized, 2_1_final");
     IOC.RegisterFallback <IRTE>(RegisterRTE);
 }
Beispiel #7
0
 public static void Init()
 {
     Debug.Log("RTE Initialized, 2_1_x");
     IOC.RegisterFallback <IRTE>(RegisterRTE);
     SceneManager.sceneUnloaded += OnSceneUnloaded;
 }