Exemplo n.º 1
0
 void OnMouseEnter()//mouse over
 {
     m_MouseOver = true;
     hoverScript.OnHover(this.gameObject);//hover script
 }
Exemplo n.º 2
0
 void OnMouseEnter()//when mouse is over this game object
 {
     mouseOver = true;
     hoverScript.OnHover(this.gameObject);   //call function from hovering object script
 }