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.
26 lines
517 B
26 lines
517 B
using UnityEngine; |
|
using HighlightPlus; |
|
|
|
namespace HighlightPlus.Demos { |
|
|
|
public class SphereSelectionEventsExample : MonoBehaviour { |
|
|
|
void Start() { |
|
HighlightManager.instance.OnObjectSelected += OnObjectSelected; |
|
HighlightManager.instance.OnObjectUnSelected += OnObjectUnSelected; |
|
} |
|
|
|
bool OnObjectSelected(GameObject go) { |
|
Debug.Log(go.name + " selected!"); |
|
return true; |
|
} |
|
|
|
bool OnObjectUnSelected(GameObject go) { |
|
Debug.Log(go.name + " un-selected!"); |
|
return true; |
|
} |
|
|
|
|
|
} |
|
|
|
} |