/// <summary> /// Initializes variables. /// </summary> protected void Awake() { _loadAssetButton.onClick.AddListener(LoadAssetButtonClick); _stopAnimationButton.onClick.AddListener(StopAnimationButtonClick); _resetRotationButton.onClick.AddListener(ResetRotationButtonClick); HideControls(); Instance = this; }
/// <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; }
/// <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; }