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; } }
void OnMouseExit() { //The mouse is no longer hovering over the GameObject so output this message each frame CardPreview.ChangePreview(back_Sprite); hoveringCard = false; }