void Update() { if (mouse.isMouseOver() && Input.GetMouseButtonDown(0)) { skillTree.hasSkillBoxBeenClicked(this.gameObject, skill); } if (mouse.isMouseOver() && Input.GetMouseButtonDown(1)) { skillTree.onSkillBoxSelect(this.skill); } }
public bool isMouseOver() { return(mouse.isMouseOver()); }
public bool isMouseOver() { Debug.Log("mouse over ui: " + mouse); return(mouse.isMouseOver()); }