Beispiel #1
0
 void OnEnable()
 {
     if (m_SpatialAwarenessManager == null)
     {
         m_SpatialAwarenessManager = target as AARSpatialAwarenessManager;
     }
 }
Beispiel #2
0
 void OnEnable()
 {
     // init instance singleton
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }