19 lines
357 B
C#
19 lines
357 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class GlowController : MonoBehaviour
|
|
{
|
|
private Renderer objectRenderer;
|
|
|
|
private void Start()
|
|
{
|
|
objectRenderer = GetComponent<Renderer>();
|
|
}
|
|
|
|
private void OnMouseDown()
|
|
{
|
|
GlowManager.Instance.SetHighlight(objectRenderer);
|
|
}
|
|
}
|