[+] Update LoadData

[+] Update LoadData
This commit is contained in:
ALEXTANG
2023-05-09 20:47:51 +08:00
parent 079ff980a3
commit de1558680c
7 changed files with 345 additions and 49 deletions

View File

@@ -1,21 +0,0 @@
using UnityEngine;
using TEngine;
namespace GameLogic
{
public class SafeTop : MonoBehaviour
{
void Start()
{
var topRect = (gameObject.transform as RectTransform);
var safeArea = UnityEngine.Screen.safeArea;
if (topRect != null)
{
var anchoredPosition = topRect.anchoredPosition;
anchoredPosition = new Vector2(anchoredPosition.x,anchoredPosition.y - safeArea.y);
topRect.anchoredPosition = anchoredPosition;
}
Log.Debug(safeArea);
}
}
}