Tanoda
ItemAction.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
5using UnityEngine.UI;
6
7public class ItemAction : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
8{
10
11 void Start()
12 {
13 ExtendButton.onClick.AddListener(()=> { GetComponentInParent<CollectorAction>().addItems.showFullGameObject(transform.parent.gameObject); });
14
15
16 }
17
18 public void OnPointerEnter(PointerEventData eventData)
19 {
20 //GetComponentInParent<CollectorAction>().addItems.showPreviewGameObject(transform.parent.gameObject);
21 }
22
23 public void OnPointerExit(PointerEventData eventData)
24 {
25 //GetComponentInParent<CollectorAction>().addItems.hidePreviewGameObject(transform.parent.gameObject);
26 }
27
28
29
30}
UnityEngine.UI.Button Button
Definition: Pointer.cs:7
void OnPointerExit(PointerEventData eventData)
Definition: ItemAction.cs:23
Button ExtendButton
Definition: ItemAction.cs:9
void OnPointerEnter(PointerEventData eventData)
Definition: ItemAction.cs:18