merged spy-ui-update

This commit is contained in:
Steven Leal 2017-11-30 13:21:33 -06:00
parent 7f20ebd211
commit 68275766d4
3 changed files with 2337 additions and 317 deletions

File diff suppressed because it is too large Load diff

View file

@ -23,6 +23,8 @@ public class IdleClickAction : Action
public override void Act(StateController controller) public override void Act(StateController controller)
{ {
// If the user clicks, but not on a UI object ... // If the user clicks, but not on a UI object ...
if (EventSystem.current.IsPointerOverGameObject())
Debug.Log("Clicking on UI element");
if (Input.GetMouseButtonDown(0) && !EventSystem.current.IsPointerOverGameObject()) if (Input.GetMouseButtonDown(0) && !EventSystem.current.IsPointerOverGameObject())
{ {
if (controller.Interactor) if (controller.Interactor)

View file

@ -1 +1 @@
m_EditorVersion: 2017.2.0f3 m_EditorVersion: 2017.1.2f1