移除xcharts和细节调整

This commit is contained in:
lishuo committed 2021-04-28 15:37:18 +08:00
1 parent b71a15e2ba
commit 6d45d052a0
511 files changed
+5342 -1941568

No files matched your search

@@ -13,6 +13,7 @@ namespace Assets.Scenes.Ride.Scripts
public ReviewItemScript _reviewItemScript;
public PlayerController _playerController;
RawImage head;
GameObject headPanel;
public int tickOffset = 0;
protected override void Init()
@@ -46,16 +47,18 @@ namespace Assets.Scenes.Ride.Scripts
}
public void MoveHead(Transform parent,Vector3 nextPosition)
{
if (headPanel == null)
{
headPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/HeadPanel"));
headPanel.transform.parent = parent;
headPanel.transform.localScale = new Vector3(0.8f, 0.8f, 0.8f);
}
if (head == null)
{
head = Instantiate(Resources.Load<RawImage>("UI/Prefab/Ride/Head"));
head = headPanel.GetComponentInChildren<RawImage>();
head.texture = _reviewItemScript.GetHead();
head.transform.parent = parent;
head.transform.localScale = new Vector3(0.8f, 0.8f, 0.8f);
}
head.transform.DOMove(new Vector3(nextPosition.x, nextPosition.y, 0), 1);
headPanel.transform.DOMove(new Vector3(nextPosition.x, nextPosition.y, 0), 1);
}
}
}