Select Git revision
StartServer.cs
-
Stefan Richter authored
Increased saved IPslots and its UI from 3 to 5. New Configfile entries with Subdomains. Updated Streamingassets folder and OS will only be checked once.
Stefan Richter authoredIncreased saved IPslots and its UI from 3 to 5. New Configfile entries with Subdomains. Updated Streamingassets folder and OS will only be checked once.
HoverText.cs 695 B
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class HoverText : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
Transform TextTransform;
// Start is called before the first frame update
void Start()
{
TextTransform = transform.GetChild(0);
}
public void OnPointerEnter(PointerEventData pointerEventData)
{
Debug.Log("hover");
TextTransform.gameObject.SetActive(true);
}
//Detect when Cursor leaves the GameObject
public void OnPointerExit(PointerEventData pointerEventData)
{
TextTransform.gameObject.SetActive(false);
}
}