12345678910111213141516171819202122232425 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- [ExecuteInEditMode]
- public class BGTipCheck : MonoBehaviour
- {
- // Update is called once per frame
- void Update()
- {
- float bl2 = (float)Screen.width / 430f;
- float bz = Screen.height / ((847f * bl2 ));
- if (bz <1f)
- {
- float js = ((847f));
- bl2 = Screen.height / js;
- }
- this.transform.localScale = new Vector3(bl2, bl2, bl2);
- }
- }
|