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