微信登录接入;卡片点击效果

This commit is contained in:
Caiyanpeng committed 2021-09-13 17:33:58 +08:00
1 parent 51cea743be
commit 969835e4d7
20 files changed
+1558 -1352

No files matched your search

@@ -9,10 +9,7 @@ using UnityEngine.EventSystems;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class RaceItemScript : MonoBehaviour
#if !(UNITY_ANDROID||UNITY_IOS)
, IPointerExitHandler, IPointerEnterHandler, IPointerUpHandler
#endif
public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler, IPointerUpHandler
{
// Start is called before the first frame update
public enum ItemType { big, small }
@@ -215,6 +212,7 @@ public class RaceItemScript : MonoBehaviour
status.GetComponent<ContentFitterController>().Refresh();
}
}
#if !(UNITY_ANDROID || UNITY_IOS)
float? localY = null;
public void OnPointerExit(PointerEventData eventData)
{
@@ -281,6 +279,28 @@ public class RaceItemScript : MonoBehaviour
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
}
#else
public void OnPointerExit(PointerEventData eventData)
{
if (_from == "list")
{
transform.Find("Masking").GetComponent<CanvasGroup>().DOFade(0, 0.3f);
}
}
public void OnPointerEnter(PointerEventData eventData)
{
if (_from == "list")
{
transform.Find("Masking").GetComponent<CanvasGroup>().DOFade(1, 0.3f);
}
}
public void OnPointerUp(PointerEventData eventData)
{
}
#endif
public void Join()
{
var res = ConfigHelper.mapCompetitionApi.ApplyMapCompetition(mapCompetition.Id);
@@ -321,4 +341,6 @@ public class RaceItemScript : MonoBehaviour
Utils.showToast(null, res.errMsg, type: 0);
}
}
}