Beispiel #1
0
 void OnMouseOver()
 {
     //If your mouse hovers over the GameObject with the script attached, output this message
     if (!FaceDown && !hoveringCard)
     {
         CardPreview.ChangePreview(front_Sprite);
         hoveringCard = true;
     }
 }
Beispiel #2
0
 void OnMouseExit()
 {
     //The mouse is no longer hovering over the GameObject so output this message each frame
     CardPreview.ChangePreview(back_Sprite);
     hoveringCard = false;
 }