void Update() { if (gameObject.activeSelf && !LoadingButton.activeSelf) { Spinner.transform.Rotate(Vector3.forward, -200 * Time.deltaTime); } }