feat: can change speed loading
parent
833b72d3ef
commit
3c2c6c3b31
|
@ -18,7 +18,7 @@ MonoBehaviour:
|
||||||
- name: LoginAsGameMachine
|
- name: LoginAsGameMachine
|
||||||
type: 1
|
type: 1
|
||||||
query: "mutation LoginAsGameMachine{\n loginAsGameMachine( input :{ macAddress
|
query: "mutation LoginAsGameMachine{\n loginAsGameMachine( input :{ macAddress
|
||||||
:\"D8BBC1004EF5\", password :\"Abc@123\"} ){\n accessToken\n
|
:\"D85ED3741515\", password :\"Sangta@123\"} ){\n accessToken\n
|
||||||
refreshToken\n }\n}"
|
refreshToken\n }\n}"
|
||||||
queryString: loginAsGameMachine
|
queryString: loginAsGameMachine
|
||||||
returnType: Game
|
returnType: Game
|
||||||
|
|
|
@ -1330,6 +1330,7 @@ MonoBehaviour:
|
||||||
_process: {fileID: 1701610193}
|
_process: {fileID: 1701610193}
|
||||||
_hintText: {fileID: 1386430229}
|
_hintText: {fileID: 1386430229}
|
||||||
_loading: {fileID: 1087577779}
|
_loading: {fileID: 1087577779}
|
||||||
|
_loadingSpeed: 50
|
||||||
_texts:
|
_texts:
|
||||||
- "Soi b\xF3ng b\u1EA1n trong t\xE1ch c\xE0 ph\xEA"
|
- "Soi b\xF3ng b\u1EA1n trong t\xE1ch c\xE0 ph\xEA"
|
||||||
- "Gi\u1EEF nguy\xEAn nh\u01B0 th\u1EBF nh\xE9"
|
- "Gi\u1EEF nguy\xEAn nh\u01B0 th\u1EBF nh\xE9"
|
||||||
|
|
|
@ -22,6 +22,7 @@ namespace GadGame.Scripts.Coffee
|
||||||
[SerializeField] private Image _process;
|
[SerializeField] private Image _process;
|
||||||
[SerializeField] private TextMeshProUGUI _hintText;
|
[SerializeField] private TextMeshProUGUI _hintText;
|
||||||
[SerializeField] private Image _loading;
|
[SerializeField] private Image _loading;
|
||||||
|
[SerializeField] private float _loadingSpeed = 100;
|
||||||
[SerializeField] private string[] _texts;
|
[SerializeField] private string[] _texts;
|
||||||
[SerializeField] private string[] _loadingTexts;
|
[SerializeField] private string[] _loadingTexts;
|
||||||
|
|
||||||
|
@ -89,12 +90,11 @@ namespace GadGame.Scripts.Coffee
|
||||||
|
|
||||||
private void OnEngageReady()
|
private void OnEngageReady()
|
||||||
{
|
{
|
||||||
_loading.gameObject.SetActive(false);
|
|
||||||
_process.fillAmount = 0;
|
_process.fillAmount = 0;
|
||||||
_isLoading = true;
|
_isLoading = true;
|
||||||
_hintText.text = _loadingTexts[_indexText];
|
_hintText.text = _loadingTexts[_indexText];
|
||||||
_loading.DOFade(1, 1f);
|
_loading.DOFade(1, 1f);
|
||||||
_loading.transform.DOLocalRotate(new Vector3(0, 0, 360), 3, RotateMode.FastBeyond360)
|
_loading.transform.DOLocalRotate(new Vector3(0, 0, _loadingSpeed), 1, RotateMode.FastBeyond360)
|
||||||
.SetLoops(-1)
|
.SetLoops(-1)
|
||||||
.SetRelative(true)
|
.SetRelative(true)
|
||||||
.SetEase(Ease.Linear);
|
.SetEase(Ease.Linear);
|
||||||
|
|
Loading…
Reference in New Issue