Ejemplo n.º 1
0
        private void Awake()
        {
#if UNITY_EDITOR
            if (FitHelper.ScreenRate < 0.47f)
            {
                SetEar();
            }
#else
            string deviceModel = SystemInfo.deviceModel;
            if (FitHelper.IsIphone(deviceModel))
            {
                return;
            }

            SetEar();
#endif
        }
Ejemplo n.º 2
0
 // Use this for initialization
 void Awake()
 {
     FitHelper.OnBgAtuo(transform as RectTransform);
 }