修复撬棍的bug
This commit is contained in:
@@ -55,6 +55,10 @@ public class Crowbar : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragH
|
||||
[YarnCommand("CrowBarIn")]
|
||||
public void MoveIn()
|
||||
{
|
||||
DOTween.Kill(transform);
|
||||
DOTween.Kill(box);
|
||||
transform.position=crowbarOutPosition;
|
||||
box.position=crowbarOutPosition;
|
||||
transform.DOMove(crowbarInPosition.position, 1f);
|
||||
box.DOMove(crowbarInPosition.position, 1f);
|
||||
Initialize();
|
||||
@@ -247,9 +251,8 @@ public CrowBarSocket FindNearestSocket()
|
||||
//isInserted = false;
|
||||
progress = 0f;
|
||||
crowbarVisual.rotation = Quaternion.Euler(0f, 0f, 180f);
|
||||
crowbarCanvas.sortingLayerName = "Tool";
|
||||
crowbarCanvas.sortingOrder = 6;
|
||||
MoveOut();
|
||||
|
||||
//MoveOut();
|
||||
}
|
||||
private void ResetCrowbar()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user