7 changed files with 17608 additions and 8351 deletions
File diff suppressed because it is too large
@ -0,0 +1,25 @@ |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.EventSystems; |
|||
using UnityEngine.UI; |
|||
public class SyncVoiceText : MonoBehaviour,IPointerEnterHandler ,IPointerExitHandler |
|||
{ |
|||
public Text text; |
|||
public Scrollbar scrollbar; |
|||
public bool isSync; |
|||
public void OnPointerEnter(PointerEventData eventData) |
|||
{ |
|||
isSync = true; |
|||
} |
|||
|
|||
public void OnPointerExit(PointerEventData eventData) |
|||
{ |
|||
isSync = false; |
|||
} |
|||
private void OnGUI() |
|||
{ |
|||
if (isSync ) |
|||
text.text = (scrollbar.value * 100).ToString("#0") + "%"; |
|||
} |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
fileFormatVersion: 2 |
|||
guid: fad41d46c8f2ce24c9a3eb1d8901a613 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|||
Loading…
Reference in new issue