NewN_UAVPlane/Assets/Zion/Scripts/Adam/Components/On3DClick.cs

32 lines
637 B
C#

using HighlightingSystem;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class On3DClick : MonoBehaviour
{
public Highlighter selfHighlight;
// Start is called before the first frame update
void Start()
{
selfHighlight = GetComponent<Highlighter>();
}
// Update is called once per frame
void Update()
{
}
private void OnMouseEnter()
{
selfHighlight.ConstantOn(Color.green);
Debug.Log("OnMouseEnter");
}
private void OnMouseExit()
{
selfHighlight.ConstantOff();
Debug.Log("OnMouseExit");
}
}