Compare commits

..

No commits in common. "39920f011c7d853256318af982d4bc171766d930" and "cf405837960e0756927e8ef31df9d110d32d074e" have entirely different histories.

3 changed files with 3 additions and 13 deletions

View File

@ -39,7 +39,7 @@ public class TaskPanel : Base
instance = this;
hideBtn.onClick.AddListener(OnClickHideButton);
}
@ -50,14 +50,12 @@ public class TaskPanel : Base
{
// 恢复按钮到原位置
buttonRect.DOAnchorPosX(showPositionX, moveDuration).SetEase(Ease.InOutCubic);
hideBtn.transform.Rotate(0, 0, 180f);
isHidden = false; // 更新状态为未隐藏
}
else
{
// 隐藏按钮
buttonRect.DOAnchorPosX(hidePositionX, moveDuration).SetEase(Ease.InOutCubic);
hideBtn.transform.Rotate(0, 0, 180f);
isHidden = true; // 更新状态为隐藏
}
}

View File

@ -6865,7 +6865,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -198, y: 221}
m_AnchoredPosition: {x: -198, y: 24.961}
m_SizeDelta: {x: 405.7333, y: 341.73}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &814718672

View File

@ -12,8 +12,6 @@ public enum Npcstate
public class RecuseNpc : MonoBehaviour
{
public static RecuseNpc instance;
private Button recusebtn;
private bool statebool = false;
@ -26,7 +24,6 @@ public class RecuseNpc : MonoBehaviour
public Transform target;
private void Awake()
{
instance = this;
recusebtn = GameObject.Find("Canvas/Recuse").GetComponent<Button>();
anim = this.GetComponent<Animator>();
@ -51,12 +48,7 @@ public class RecuseNpc : MonoBehaviour
movebool = true;
nstate = Npcstate.run;
recusebtn.gameObject.SetActive(false);
Debug.Log("Setnpcstateµ÷ÓÃ");
}
public void SetNpcDes(Transform tar)
{
target = tar;
Debug.Log("Setnpcstate调用");
}
private void Update()