You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
726 B

using Photon.Pun;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class GameUICircuit : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IBeginDragHandler, IDragHandler {
public CircuitType type;
public Image image;
public void OnBeginDrag(PointerEventData eventData) {
GameGUI.Instance.OnUICircuitBeginDrag(this);
}
public void OnDrag(PointerEventData eventData) {
}
public void OnPointerEnter(PointerEventData eventData) {
image.color = Color.HSVToRGB(0, 0, 0.8f);
}
public void OnPointerExit(PointerEventData eventData) {
image.color = Color.white;
}
void Start() {
image.material = ColorManager.GetUiBy(PhotonNetwork.LocalPlayer.ActorNumber);
}
}