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