Example #1
0
 void OnHover(bool isOver)
 {
     if (target != null)
     {
         if (((isOver && trigger == Trigger.OnMouseOver) ||
              (!isOver && trigger == Trigger.OnMouseOut)))
         {
             target.onHover4Lua(gameObject, functionName, isOver);
         }
     }
     if (target2 != null)
     {
         if (((isOver && trigger == Trigger.OnMouseOver) ||
              (!isOver && trigger == Trigger.OnMouseOut)))
         {
             target2.onHover4Lua(gameObject, functionName, isOver);
         }
     }
 }