Ejemplo n.º 1
0
 /// <summary>
 /// Initializes variables.
 /// </summary>
 protected void Awake()
 {
     _loadAssetButton.onClick.AddListener(LoadAssetButtonClick);
     _stopAnimationButton.onClick.AddListener(StopAnimationButtonClick);
     _resetRotationButton.onClick.AddListener(ResetRotationButtonClick);
     HideControls();
     Instance = this;
 }
Ejemplo n.º 2
0
            /// <summary>
            /// Initializes variables.
            /// </summary>
            protected void Awake()
            {
                _loadLocalAssetButton.onClick.AddListener(LoadLocalAssetButtonClick);
                _loadRemoteAssetButton.onClick.AddListener(LoadRemoteAssetButtonClick);
                _stopAnimationButton.onClick.AddListener(StopAnimationButtonClick);
                _resetRotationButton.onClick.AddListener(ResetRotationButtonClick);
#if !UNITY_EDITOR && UNITY_WEBGL
                _dragAndDropText.gameObject.SetActive(true);
#endif
                HideControls();
                Instance = this;
            }
Ejemplo n.º 3
0
            /// <summary>
            /// Initializes variables.
            /// </summary>
            protected void Awake()
            {
                _loadLocalAssetButton.onClick.AddListener(LoadLocalAssetButtonClick);
                _loadRemoteAssetButton.onClick.AddListener(LoadRemoteAssetButtonClick);
                _stopAnimationButton.onClick.AddListener(StopAnimationButtonClick);
                _resetRotationButton.onClick.AddListener(ResetRotationButtonClick);
                HideControls();
#if (UNITY_WEBGL && !UNITY_EDITOR)
                var webGLEvents = GetComponent <WebGLEvents>();
                if (webGLEvents != null)
                {
                    webGLEvents.SetupOnUploadDataLoadedEvent(htmlFormName, htmlElementName, LoadInternal);
                }
#endif
                Instance = this;
            }