32 lines
634 B
C#
32 lines
634 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");
|
|
}
|
|
}
|