登录bug&影子选手bug修复
This commit is contained in:
1 parent
92676d7cf8
commit
696fd256a8
9 files changed
+2200
-2173
No files matched your search
@@ -1,12 +1,14 @@
|
||||
using Assets.Scripts;
|
||||
using DG.Tweening;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
public class SelectPlayerItemScript:MonoBehaviour
|
||||
public class SelectPlayerItemScript:MonoBehaviour, IPointerExitHandler, IPointerEnterHandler, IPointerUpHandler
|
||||
{
|
||||
private string Id ;
|
||||
private RawImage Head;
|
||||
@@ -17,10 +19,6 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
public bool isSelected;
|
||||
private void Awake()
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
selectbutton = transform.GetComponent<Button>();
|
||||
}
|
||||
private void Start()
|
||||
@@ -87,5 +85,29 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
if (!App.TextureCache.ContainsKey(url))
|
||||
App.TextureCache.Add(url, Head.texture);
|
||||
}
|
||||
float? localY = null;
|
||||
public void OnPointerExit(PointerEventData eventData)
|
||||
{
|
||||
//if (localY != null)
|
||||
//{
|
||||
// transform.DOLocalMoveY(localY.Value, 0.3f);
|
||||
//}
|
||||
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
|
||||
}
|
||||
|
||||
public void OnPointerEnter(PointerEventData eventData)
|
||||
{
|
||||
//if (localY == null)
|
||||
//{
|
||||
// localY = transform.localPosition.y;
|
||||
//}
|
||||
//transform.DOLocalMoveY(localY.Value + 5, 0.3f);
|
||||
Cursor.SetCursor(Resources.Load<Texture2D>("Images/PointerButtonHover"), Vector2.zero, CursorMode.Auto);
|
||||
}
|
||||
|
||||
public void OnPointerUp(PointerEventData eventData)
|
||||
{
|
||||
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user