Exemple #1
0
 private void OnEnable()
 {
     #if UNITY_EDITOR
     if (CriAtomPlugin.previewCallback != null)
     {
         CriAtomPlugin.previewCallback();
     }
     #endif
     if (CriAtom.instance != null)
     {
         return;
     }
     this.Setup();
 }
    private void OnEnable()
    {
        #if UNITY_EDITOR
        if (CriAtomPlugin.previewCallback != null)
        {
            CriAtomPlugin.previewCallback();
        }
        #endif
        if (CriAtom.instance != null)
        {
            return;
        }

        #if (!UNITY_EDITOR || UNITY_EDITOR_OSX) && UNITY_WEBGL
        this.SetupAsync();
        #else
        this.Setup();
        #endif
    }
    private void OnEnable()
    {
        #if UNITY_EDITOR
        if (CriAtomPlugin.previewCallback != null)
        {
            CriAtomPlugin.previewCallback();
        }
        #endif
        if (CriAtom.instance != null)
        {
            return;
        }

        #if CRIWARE_FORCE_LOAD_ASYNC
        this.SetupAsync();
        #else
        this.Setup();
        #endif
    }