本地合并备份
This commit is contained in:
1 parent
2b275d6dc5
commit
4353a38c96
44 files changed
+5568
-4294
No files matched your search
@@ -1,6 +1,9 @@
|
||||
using Assets.Scenes.Ride.Scripts.Model;
|
||||
using Assets.Scripts;
|
||||
using DG.Tweening;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
@@ -9,6 +12,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
public string[] record;
|
||||
public ReviewItemScript _reviewItemScript;
|
||||
public PlayerController _playerController;
|
||||
RawImage head;
|
||||
|
||||
public int tickOffset = 0;
|
||||
protected override void Init()
|
||||
@@ -39,6 +43,18 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
_reviewItemScript = reviewItemScript;
|
||||
}
|
||||
public void MoveHead(Transform parent,Vector3 nextPosition)
|
||||
{
|
||||
if (head == null)
|
||||
{
|
||||
head = Instantiate(Resources.Load<RawImage>("UI/Prefab/Ride/Head"));
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user