28.04.2025

This commit is contained in:
Станислав Хозяенок 2025-04-28 11:35:53 +07:00
parent b6c87d8b70
commit 06c62c1ad6
6 changed files with 16629 additions and 16917 deletions

@ -1 +1 @@
Subproject commit 958cbfa9a28b073218a178f83623e469260ed061
Subproject commit 27d43e28b892e2244daada97e130bec261d85904

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -1 +1 @@
Subproject commit 7439d7a5a53092e8ad19f2ea8a17e1026cdb52da
Subproject commit 5d74d6604979094de0532f72ad4fc43cff16b380

View File

@ -0,0 +1,46 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using UnityEngine.Events;
public class UIImageAdvancedInteractions : MonoBehaviour,
IPointerEnterHandler,
IPointerExitHandler
{
[System.Serializable]
public class UIEvent : UnityEvent<PointerEventData> { }
[Header("Events")]
public UIEvent onPointerEnter;
public UIEvent onPointerExit;
public UIEvent onPointerClick;
private Image _image;
private void Awake()
{
_image = GetComponent<Image>();
}
public void OnPointerEnter(PointerEventData eventData)
{
onPointerEnter.Invoke(eventData);
Debug.Log("OnPointerEnter");
}
public void OnPointerExit(PointerEventData eventData)
{
onPointerExit.Invoke(eventData);
Debug.Log("OnPointerExit");
}
public void OnPointerClick(PointerEventData eventData)
{
onPointerClick.Invoke(eventData);
Debug.Log("OnPointerClick");
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6cbd75a7104c4b443b9e1c40f1b6589e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: